I think you need the G-code abort simply to halt the tool change process. There are other ways, but G-code abort should be cleanest, and should also run the ON_ABORT routine defined in the INI.
You can also look at setting HAL pins from other code and linking them to the "message" HAL component.