void destroy() throws IOException, StoreException {
    shutDownExecutorService(scheduler, 30, TimeUnit.SECONDS);
    if (index != null) {
      index.close(false);
    }
    log.close(false);
    assertTrue(tempDir + " could not be cleaned", StoreTestUtils.cleanDirectory(tempDir, false));
  }
Destroys state and cleans up as required.
@throws IOException
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/CuratedLogIndexState.java