I dont know if this exists or not, but im looking for an event that tells me when script execution has halted.
The intended functionality is based on cleaning up a script, should a user stop code exection (ctrl+c). If there is an event that serves this in any capacity, I havent found it yet.
Has anyone have any information around this?