remove items out of the inventory BEFORE we close it