Need to use waitForProcessOutput rather than consumePO followed by by waitFor lest we miss some of it.