@Override
  public void close() throws IOException {
    executor.shutdown();
    try {
      // wait 10 seconds.
      executor.awaitTermination(10, TimeUnit.SECONDS);
    } catch (InterruptedException e) {
      Thread.currentThread().interrupt();
      LOG.warn("Interruption occurred while stopping chaos monkeys " + e);
    }
  }
This class can be used to control chaos monkeys life cycle.
hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/util/Monkeys.java