void (@NotNull ProcessEvent event, boolean willBeDestroyed) { try { final XsltDebuggerSession session = XsltDebuggerSession.getInstance(event.getProcessHandler()); if (session != null) { session.stop(); } } catch (VMPausedException e) { // VM is paused, no way for a "clean" shutdown } catch (DebuggerStoppedException e) { // OK } super.processWillTerminate(event, willBeDestroyed); }