Replace the ItemList's closeAll with closeCursor