Close pipes in |Process::Run()| before waiting for child to exit.

This may help to solve problem with a hanging Clang.