Added better SMTP exception handling.