Updated RunnableProcess to use the return value of Process.waitFor() to determine whether the process is still running