Support close.

Closing STDOUT in END {} is common practice.
Merge pull request #4 from okxchg/master

Support close in STDOUT/STDERR