Closes child process by closing its stdin stream.