Sends an email on php shutdown. See php register_shutdown_function.