Close inventory when saving.