Program: 93458
Project: 93458
Buggy source:
/** 
 * stopServer
 * @param silent
 * @param removePid
 */
private static void stopServer(boolean silent,boolean removePid){
  if (!silent) {
    LOGGER.info("String_Node_Str");
  }
  if (shutdownHandler != null) {
    if (!silent) {
      LOGGER.info("String_Node_Str");
    }
    try {
      shutdownHandler.shutdown();
      shutdownHandler.awaitShutdown(60 * 1000);
    }
 catch (    InterruptedException ie) {
      LOGGER.error("String_Node_Str",ie);
    }
  }
  if (MongoDBClientSingleton.isInitialized()) {
    MongoClient client=MongoDBClientSingleton.getInstance().getClient();
    if (!silent) {
      LOGGER.info("String_Node_Str");
    }
    try {
      client.close();
    }
 catch (    Throwable t) {
      LOGGER.warn("String_Node_Str",t);
    }
  }
  Path pidFilePath=FileUtils.getPidFilePath(FileUtils.getFileAbsoultePathHash(CONF_FILE_PATH));
  if (removePid && pidFilePath != null) {
    if (!silent) {
      LOGGER.info("String_Node_Str",pidFilePath.toString());
    }
    try {
      Files.deleteIfExists(pidFilePath);
    }
 catch (    IOException ex) {
      LOGGER.error("String_Node_Str",pidFilePath.toString(),ex);
    }
  }
  if (!silent) {
    LOGGER.info("String_Node_Str");
  }
  TMP_EXTRACTED_FILES.keySet().forEach(k -> {
    try {
      ResourcesExtractor.deleteTempDir(k,TMP_EXTRACTED_FILES.get(k));
    }
 catch (    URISyntaxException|IOException ex) {
      LOGGER.error("String_Node_Str",TMP_EXTRACTED_FILES.get(k).toString(),ex);
    }
  }
);
  if (!silent) {
    LOGGER.info(ansi().fg(GREEN).bold().a("String_Node_Str").reset().toString());
  }
  LoggingInitializer.stopLogging();
}

Fixed version (ground truth):
/** 
 * stopServer
 * @param silent
 * @param removePid
 */
private static void stopServer(boolean silent,boolean removePid){
  if (!silent) {
    LOGGER.info("String_Node_Str");
  }
  if (shutdownHandler != null) {
    if (!silent) {
      LOGGER.info("String_Node_Str");
    }
    try {
      shutdownHandler.shutdown();
      shutdownHandler.awaitShutdown(60 * 1000);
    }
 catch (    InterruptedException ie) {
      LOGGER.error("String_Node_Str",ie);
    }
  }
  if (MongoDBClientSingleton.isInitialized()) {
    MongoClient client=MongoDBClientSingleton.getInstance().getClient();
    if (!silent) {
      LOGGER.info("String_Node_Str");
    }
    try {
      client.close();
    }
 catch (    Throwable t) {
      LOGGER.warn("String_Node_Str",t);
    }
  }
  Path pidFilePath=FileUtils.getPidFilePath(FileUtils.getFileAbsoultePathHash(CONF_FILE_PATH));
  if (removePid && pidFilePath != null) {
    if (!silent) {
      LOGGER.info("String_Node_Str",pidFilePath.toString());
    }
    try {
      Files.deleteIfExists(pidFilePath);
    }
 catch (    IOException ex) {
      LOGGER.error("String_Node_Str",pidFilePath.toString(),ex);
    }
  }
  if (!silent) {
    LOGGER.info("String_Node_Str");
  }
  TMP_EXTRACTED_FILES.keySet().forEach(k -> {
    try {
      ResourcesExtractor.deleteTempDir(k,TMP_EXTRACTED_FILES.get(k));
    }
 catch (    URISyntaxException|IOException ex) {
      LOGGER.error("String_Node_Str",TMP_EXTRACTED_FILES.get(k).toString(),ex);
    }
  }
);
  undertowServer.stop();
  if (!silent) {
    LOGGER.info(ansi().fg(GREEN).bold().a("String_Node_Str").reset().toString());
  }
  LoggingInitializer.stopLogging();
}