Fixed bug: now correctly capturing exit state. Correctly cleaning up (killing jobs) after a failure. Closing the drmaa session properly.