calling unregister hook before disconnect handler on sockjs socket close