Be extra-careful about closing pipes; don't close stdout/stderr by mistake!