fixes ZEN-15717

DO NOT MERGE
If output.Exited evaluates to true when it is written to outputChan in this for loop, zminion exits. See line 165.