BLK-52 Improves exception handling in email block

Signed-off-by: Oren Leiman <oleiman@neutral.io>