bug fix for websocket when user disconnected