client websocket cleanup