akka/akka — pull request #15344 by patriknw (2014-06-04 07:03:12+00:00)
Title: =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)

(cherry picked from commit 5e978220a5b0bd5c49668bb4b4db3808f27c6ce2)

Conflicts:
akka-actor/src/main/scala/akka/actor/ActorSystem.scala