Add error handling to send email reports and show user generic pages.