code: public static void closeGlobal()
    {
      ArrayList<EnvLoaderListener> listeners;
      listeners = new ArrayList<>();
      listeners.addAll(_globalLoaderListeners);
      _globalLoaderListeners.clear();
  
      for (int i = 0; i < listeners.size(); i++) {
        EnvLoaderListener listener = listeners.get(i);
  
        listener.classLoaderDestroy(null);
      }
    }
docs: destroys the current environment.