Support close in STDOUT/STDERR

Closing STDOUT in END {} is common practice.