Add a try/catch for RectangleTool.disconnect_events