/* Every job will be canceled if possible. Jobs that aren't interruptable
* or that don't complete before the grace period is over will be stopped
* prematurely by the VM exit. */
if (job.getState () == job.RUNNING) {
try {
job.cancel ();
}
catch (NotInterruptableException e) {
this.logError (jobId, "Job cannot be interrupted");
}
}