added catch for factual errors, send email when error occurs