table->close is changed to call table->closeScan