send email on error with file name in email subject.