I could have a global variable being updated throughout the script, with the current state of execution, and in case the signal is trapped, I can then act/log based upon it...
Almost there, but not entirely what I wanted... Isn't there a way to actually delay the execution of the
as the signal is received? That would allow the script to finish whatever it was doing at the time (if it was doing anything), and only then die gracefully...