Revert "Fixed problem that file handle (copy of STDOUT and STDERR) is initialized at an unintended timing."

This reverts commit 1303c5b85fecd81db0cbe68e9d312b6256a0dbed.