private void OnDestroy()
        {
            GameEvents.onGamePause.Remove(onPause);
            GameEvents.onGameUnpause.Remove(onUnPause);
            GameEvents.onVesselStandardModification.Remove(onVesselModified);
            //GameEvents.onVesselSituationChange.Remove(sitChange);
            SEP_Utilities.onWindowSpawn.Remove(onWindowSpawn);
            SEP_Utilities.onWindowDestroy.Remove(onWindowDestroy);

            if (handler != null)
            {
                handler.OnDestroy();
            }
        }
        private void OnDestroy()
        {
            running = false;

            GameEvents.onLevelWasLoaded.Remove(onReady);

            var handlers = experiments.SelectMany(e => e.Value).ToList();

            int l = handlers.Count;

            for (int i = 0; i < l; i++)
            {
                SEP_ExperimentHandler handler = handlers[i];

                handler.OnDestroy();
            }
        }
        private void OnDestroy()
        {
            if (instance == this)
            {
                instance = null;
            }

            GameEvents.onLevelWasLoaded.Remove(onReady);
            GameEvents.OnGameSettingsApplied.Remove(onSettingsApplied);

            var handlers = experiments.Values.SelectMany(e => e).ToList();

            int l = handlers.Count;

            for (int i = 0; i < l; i++)
            {
                SEP_ExperimentHandler handler = handlers[i];

                handler.OnDestroy();
            }
        }