// If we had a kernel
if (tempKernelReference != null)
{
// Shut it down
KernelController controller = tempKernelReference.getController();
controller.shutdown();
}
}
catch (final Exception e)
{
log.warn("Error stopping " + KernelController.class.getName(), e);