Close the WebSocket connection