52a7721bf7
To be able to connect smoothly after disconnecting, we have to unregister all handlers including shutdown handler on disconnection