Catch smtp exceptions