Ensure `close!` works on both normal file handles and stdout.
Ensure `flush!` works on both normal file handles and stdout.