ENH: allow cache subclasses to implement cleanup @ session.close.

PoC for #42