destructor was not closing table.