def destroy(self):
        # TODO: WHY ???
        if not self._endpoint:
            return

        self._endpoint.unregisterProtocol(self)
        self._endpoint = None

        # Endpoint should destroy all connections
        assert len(self._connections) == 0

        super(Protocol, self).destroy()
When the map is clicked, add the point to the currently selected class
dataset/ETHPy150Open rapyuta/rce/rce-core/rce/core/network.py/Protocol.destroy--crossover with--dataset/ETHPy150Open nasa/CrisisMappingToolkit/cmt/util/production_gui.py/FeatureTrainerWindow._handleMapClick