@Override
      public void run() {
        try {
          p.waitFor();
        } catch (InterruptedException ignore) {
          Thread.currentThread().interrupt();
          return;
        }
      }
Waits for a finite time interval for the script to complete.

@param p                     the process on which this method will wait.
@return                      the exit code returned by the process.
@throws InterruptedException if the thread is interrupted while waiting for the process to finish.
samza-rest/src/main/java/org/apache/samza/rest/script/ScriptRunner.java