Cleanup SpawnProcess files after use

`SpawnProcess` creates files to use for `stdout` and `stderr` which are opened but never closed, this leaks file descriptors that eventually cause larger test suites to fail on some systems (I encountered this with `rspec-core`).

So before we clear processess we clean them up by closing their io, for completness I also added this to `InProcess`.