The disconnected callback is never invoked when a local/remote libprocess process terminates. Here is a sample test that shows that the returned future from disconnect() is never fulfilled.
The Http class refers to the one used in the tests:
The following test passes i.e. when the client explicitly invokes disconnect():