fixed websocket closing