Yeah, if I could get an additional M-code automatically run whenever the program stops (M30, estop, end of file) then that would be perfect!
(I e, an additional M-code, not having to edit existing files, for the obvious reasons.)