handle sending email exceptions