close websocket connection