Add error catch for sendmail / Debug operations for deployment server