if (anInst.isGracefullyScheduled()) {
localMonitor.stopInstance(anInst);
} else {
localMonitor.terminateInstance(anInst);
}
anInst.calculateNextScheduledShutdown();
}
} catch (MonitorException me) {
NSLog.err.appendln("Exception while scheduling: " + me.getMessage());
}
}