Factor, and send mail on error