Before / After ECS worlds initializations

Hello,
im looking for a way to Initialize some Classes before the ECS worls Starts and deinitialize them after all systems (or specific ones ) has been destroyed.

i was using this code but the PlayerLoopManager can not be imported anymore:

 public class ENetInitializer
    {
        [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
        private static void InitializeOnSubsystemRegistration()
        {
            Debug.Log("ENet Initialized");
            ENet.Library.Initialize();
        }

        [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
        private static void InitializeBeforeSceneLoad()
        {
           PlayerLoopManager.RegisterDomainUnload(Deinitialize, int.MaxValue);
        }

        private static void Deinitialize()
        {
            Debug.Log("ENet Deinitialized");
            ENet.Library.Deinitialize();
        }
    }

You can still access the PlayerLoop if you add the SubsystemRegistration package, and include the UnityEngine.LowLevel namespace

Hey, @Opeth001 , did you manage to solve this?