code: private void stopApplication(File currentFile) {
          if (_tc.isEventEnabled()) {
              Tr.event(_tc, "Stopping dropin application '" + currentFile.getName() + "'");
          }
          String filePath = getAppLocation(currentFile);
  
          try {
              Configuration config = _configs.remove(filePath);
              if (config != null) {
                  config.delete();
              }
          } catch (Exception e) {
              getAppMessageHelper(null, filePath).error("MONITOR_APP_STOP_FAIL", currentFile.getName());
          }
      }
docs: Takes a file and a pid and will stop the file with that PID from running, and remove the pid to app
  mapping from the app pid mapper
  
  @param ca
  
  @param currentFile the application's file (can be file or directory)