exitValue does not fail when process still running

-1 is returned instead.