Jn clean shutdown

-1
TODO:
- Replace shutdown sleep with a fancy CountDownLatchBarrier
- Block outgoing messages requiring consistency on Leaving master nodes (still not done...)
- Test the explicit resolver changes