def close(self, local_only=False):
        self.status = CalvinTunnel.STATUS.TERMINATED
        self.tunnels[self.peer_node_id].pop(self.id)
        if not local_only:
            #FIXME use the tunnel_destroy cmd directly instead
            raise NotImplementedError()
Register a callback for events on the tool identified by 'id'.
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvin_proto.py/CalvinTunnel.close--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/ui/null/action/tool_palette.py/ToolPalette.on_tool_event