The cleanup function was only called in _close() which was only calling that function. This indirection didn't make much sense.
The cleanup function was only called in _close() which was only calling that function. This indirection didn't make much sense.