stdout/stderr: Actually close them

Fixes redirections introduced in #122 to actually close stdout/stderr.
Fixes #129.