private boolean shouldTerminate() throws InterruptedException {
    if (!ProcessUtils.isProcessAlive(process)) {
      if (!continueReading.isRunning()) {
        continueReading.start();
      } else if (continueReading.elapsedTimeMillis() > continueReadingMillis) {
        return true;
      }
    }
    Thread.sleep(10);
    return false;
  }
millis to continue reading after Process terminates in order to fully read the last of its
output
geode-core/src/main/java/org/apache/geode/internal/process/NonBlockingProcessStreamReader.java