boolean () { myHandler.destroyProcess(); // signal was sent, but we still need to wait for process to finish its dark deeds if (myHandler.waitFor(myTerminationTimeoutMs)) { return true; } LOG.warn("Soft-kill failed for [" + printableCommandLine() + "]."); ExecutionManagerImpl.stopProcess(myHandler); return myHandler.waitFor(myTerminationTimeoutMs); }