protect against exceptions from emails