Cleanup for tabletmanager.