catch exception in email processing