Fix for remaining IOExceptions when using pipes to child process.

This should fix the remaining IOException problems. An IOException when closing stderr is simply ignored.