code: public void stop() {
      if (mBackup != null) {
        mBackup.cancel(true);
        mBackup = null;
      }
      LOG.info("Daily metadata backup stopped");
  
      mScheduledExecutor.shutdownNow();
      String waitForMessage = "waiting for daily metadata backup executor service to shut down";
      try {
        if (!mScheduledExecutor.awaitTermination(SHUTDOWN_TIMEOUT_MS, TimeUnit.MILLISECONDS)) {
          LOG.warn("Timed out " + waitForMessage);
        }
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
        LOG.warn("Interrupted while " + waitForMessage);
      }
    }
docs: Stops {@link DailyMetadataBackup}.