code: public void close() {
      if (indexManager != null)
        indexManager.flush();
      if (schema != null)
        schema.close();
      if (security != null)
        security.close();
    }
docs: Closes internal objects