added catch block around send message in the event send email fails