CLN Replace direct import of closing with qualified contextlib usage
There were 4 uses of `contextlib.closing` and 2 of `closing`.

This PR converts the use of `closing` to `contextlib.closing` and removes the extra import statement.
Thanks @mheguy 