#151 Fix WebSocket memory leak