SocketIO hangs in case of error in AuthorizationListener