in reply to Custom SIG DIE handler that isn't executed in evals
I'd recommend to wrap your script in another one that does that checks and sends you an email if needed.