Close stdout pipe on error in process_unix_exec (was double closing stdin pipe)
When an error occurs and cleanup is being performed in
process_unix_exec, the stdin pipe is currently being double closed instead of closing both the stdin and stdout pipes. This occurs in two places.
PR to follow.