I have a script that runs in the background, and it is possible for it to raise an Exception somewhere in the script.
That is, without Exception handling- i.e. the exception is not expected.
Is it possible to run a function when the exception is raised? Or just before/after the exception is raised?