BUG: do not suppress errors when closing file handles
Wait for #47153 to be merged (fails on main otherwise). Closes #47136 and should be backported https://github.com/pandas-dev/pandas/pull/47153#discussion_r884156873
@simonjayhawkins green thanks @twoertwein  @meeseeksdev backport 1.4.x Could not push to auto-backport-of-pr-47165-on-1.4.x due to error, aborting.