/** * {@inheritDoc} */ @Override public void shutdown() { try { deactivate(); } catch (CouldNotPerformException | InterruptedException ex) { ExceptionPrinter.printHistory("Could not deactivate " + this + " during shutdown!", ex, logger); } reset(); destroyed = true; if (shutdownDeamon != null) { shutdownDeamon.cancel(); } }