caller removes a websocket if its unconnected