close websocket on conflict