removes /connect promise in websocket server socket close handler