code: public void close() {
          sessionsByKeyspace.entrySet()
                            .forEach(session -> session.getValue().close());
  
          cluster.close();
      }
docs: Initiate close cluster and session operations