add email notice for 500 error