close table and remove unneeded table descriptor