Added email error handler to app logger