code: public void shutdown(){
          transactionListenerSet.forEach(transactionListener -> transactionListener.close(null));
          transactionListenerSet.clear();
          openSessions.values().forEach(SessionImpl::close);
      }
docs: Close all open transactions, sessions and connections with clients - this is invoked by JVM shutdown hook