ENH: add cleanup dispatcher
clean up pytables context manager