Made a little more robust to delays in the exit status of the job appearing in bjobs
Signficantly reworked to stop status-13 errors caused by AcePerl not exiting cleanly