akka/akka — pull request #744 by patriknw (2012-09-25 12:17:15+00:00)
Title: Terminate remote-deployed actors when system shutdown, see #2552

* Termination hook mechanism in system guardian to be able to
notify RemoteSystemDaemon and wait for it to terminate children
* Stopping the children will trigger ordinary death watch mechanism,
in for example routers
* Note bug in RemoteSystemDaemon, watch of children was not done
properly, which might have been a memory leak for remote deployed
actors.