Fix popen streams staying open in child and wrong process result.

IO#close 100%.