//init a interrupt hook if its defined (by default its null)
if(settings.hasInterruptHook()) {
try {
if(Class.forName("sun.misc.Signal") != null)
new InterruptHandler(this, settings.getInterruptHook()).initInterrupt();
}
catch(ClassNotFoundException e) {
if(settings.isLogging())
logger.log(Level.WARNING,
"Class sun.misc.Signal was not found. No interrupt handling enabled.");