A hack to cause latex errors to be logged and mailed to admin.