Call Unregister hook before sockjs disconnect

On disconnect, unregister any handlers that haven't been unregistered and call the unregister hook prior to each.