trying to stop websocket from leaking