@Override public void shutdown() { nonStopManager.shutdown(); ToolkitInternal toolkit = null; try { toolkit = getInitializedToolkit(); } catch (Exception e) { // Ignore if toolkit failed to initialize } if (toolkit != null) { toolkit.shutdown(); } nonStopInitiailzationService.shutdown(); }