Added fatal_and_exit routine so email will be sent on error