Next version of exception_report that sends an email on completion of the script.