55cbdf58fe
Fixes #2799 Also 2 Arc's were replaced by one server's instance. It is needed for p2p thread management in #2778, currently there is no point where we could store thread handles and join them because thread::join consume the caller, which is impossible in case of Arc.