Hopefully fix websocket memory leak