catch non-smtplib exception on emails