docs: public void removeApplication(String pid) {
          // remove the application listener from the set we know about and stop it
          ApplicationListeners listeners = _appListeners.remove(pid);
  
          //check that the app is known, this can be run after the app is already removed.
          if (listeners != null) {
              listeners.stopListeners(true);
          }
      }