fix websocket shutdown