code: public void close() {
          synchronized (sessions) {
              closed = true;
              sessionCleaner.close();
              sessions.stream().forEach(PooledSession::reallyClose);
          }
      }
docs: Closes all underlying JMS sessions.