public void stop() {
    replicatedTombstoneSweeper.stop();
    nonReplicatedTombstoneSweeper.stop();
  }
this ensures that the background sweeper thread is stopped
geode-core/src/main/java/org/apache/geode/internal/cache/TombstoneService.java