public WeakLoaderListener(EnvLoaderListener listener){
  _listenerRef=new WeakReference<>(listener);
}

public WeakLoaderListener ( EnvLoaderListener listener ) { _listenerRef = new WeakReference < > ( listener ) ; }
creates the new close listener .
