Catch exceptions during checking emails.