Added error handler for mail receive flow.