Added sendmail. Rebuild exception control logic