Fixed email send for uncaught errors.