call close on the underlying stream even if flush raises (#16597)
4 files changed