Added exception handling for actor in sendEmail