code: public void stopListening()
      {
          if (isIsolated()) {
              this.loggerManager.popLogListener();
          } else {
              this.observationManager.removeListener(this.logListener.getName());
          }
          this.observationManager.removeListener(this.progress.getName());
  
          // Make sure the progress is closed
          this.progress.getRootStep().finish();
      }
docs: Stop listening to events.