void (SuspendContextImpl suspendContext, @Nullable Event event) { // do not destroy another process on reattach if (isAttached()) { VirtualMachine vm = getVirtualMachineProxy().getVirtualMachine(); if (event == null || vm == event.virtualMachine()) { try { preprocessEvent(suspendContext, null); cancelRunToCursorBreakpoint(); } finally { DebuggerEventThread eventThread = myEventThreads.get(vm); if (eventThread != null) { eventThread.stopListening(); myEventThreads.remove(vm); } closeProcess(false); } } } if (event != null) { showStatusText(this, event); } }