Fixed deadlock where both programs would wait for their stderr to be read.