Defer a bulk thing at the function scope level, and append files to an array after opening them.
Would be nice to have both options though. Why not a “defer” package?