Made a minor change to always create an 'ended.txt' for each job run at its end

This file indicates that the job has completed running.
Text contains one of the following
1) Job succeeded
2) Job failed
3) Job crashed