=rem #13923 Fixes hanging ActorSystem termination

* occurs on failed RemoteActorRef initialization
* fixed shutting down Netty when startup fails
* fixed registering ActorSystem's termination hook before ActorRefProvider initialization
* added new test case (checking if no threads left after a failed actor
  system initialization)