@larsmans I found the compositional approach of `contextlib.closing` too inconvenient to work with, switched back to direct inheritance.