Added handling of exceptions for readMail()