Getting rid of leftover websocket reference