code: protected static void destroyProcess(String pid, long sleeptimeBeforeSigkill,
                                      boolean inBackground) {
      terminateProcess(pid);
      sigKill(pid, false, sleeptimeBeforeSigkill, inBackground);
    }
docs: Destroy the process.
  @param pid Process id of to-be-killed-process
  @param sleeptimeBeforeSigkill The time to wait before sending SIGKILL
  after sending SIGTERM
  @param inBackground Process is to be killed in the back ground with
  a separate thread