void () { VirtualMachineProxy virtualMachineProxy = debugProcess.getVirtualMachineProxy(); if (virtualMachineProxy instanceof VirtualMachineProxyImpl && ((VirtualMachineProxyImpl)virtualMachineProxy).canBeModified()) { // use success exit code here to avoid the main process interruption ((VirtualMachineProxyImpl)virtualMachineProxy).exit(0); } else { debugProcess.stop(true); } }