code: public void shutdown() {
          ClassLoader origClassLoader = Thread.currentThread().getContextClassLoader();
          try {
              ClassLoader orientClassLoader = OIndexes.class.getClassLoader();
              Thread.currentThread().setContextClassLoader(orientClassLoader);
              graph.close();
          } finally {
              Thread.currentThread().setContextClassLoader(origClassLoader);
          }
      }
docs: Shuts down the graph database