Setting websocket channel to null after disconnecting