ToolBase.destroy#

... is deprecated. To run code upon tool removal, connect to the tool_removed_event event.