private void waitAndHardKillProcess() {
    // The signal was sent, but we still need to wait for the process to finish its dark deeds
    if (myHandler.waitFor(myTerminationTimeoutMs)) {
      return;
    }

    LOG.warn("Soft-kill failed for [" + printableCommandLine() + "].");

    ExecutionManagerImpl.stopProcess(myHandler);
    if (myHandler.waitFor(myTerminationTimeoutMs)) {
      return;
    }

    LOG.warn("Could not terminate [" + printableCommandLine() + "].");
  }
private void waitAndHardKillProcess()