catch SMTP exception if any - issue #311