Fixed bug in LSF file monitor so we can properly handle cases where the user terminates and LSF job.

Also started work on a test for job arrays.