Added saving of inventories on disable