Remove any WebSocket reference from the worker and the sidebar