added close_child_stderr and close_child_stdout