Close stdout pipe