public void CloseAllWithSave(bool forceZlib = false)
        {
            for (int i = 0; i < packages.Count; i++)
            {
                Package pkg = packages[i];
                if (mainWindow != null)
                {
                    mainWindow.updateStatusLabel2("Saving package " + (i + 1) + " of " + packages.Count);
                }
                if (_installer != null)
                {
                    _installer.updateStatusStore("Saving packages " + (i * 100 / packages.Count) + "%");
                }
                pkg.SaveToFile(forceZlib);
                pkg.Dispose();
            }

            if (GameData.gameType == MeType.ME3_TYPE)
            {
                TOCBinFile.UpdateAllTOCBinFiles();
            }

            if (mainWindow != null)
            {
                mainWindow.updateStatusLabel2("");
            }
            packages.Clear();
        }