Clear script engine errors once they have been reported

So that an error is not repeatedly reported to the console and log file.
Also consistently report filename.
And scripts included after one in error will now be run.
Merge pull request #3077 from ctrlaltdavid/19790

Code Review for Job #19790