code: public void shutdown() {
          // Delete the cookie _session if there is one
          Response response = executeToResponse(Http.DELETE(new URIBase(clientUri).path("_session")
                  .build()));
          if (!response.isOk()) {
              log.warning("Error deleting session on client shutdown.");
          }
          // The execute method handles non-2xx response codes by throwing a CouchDbException.
  
          factory.shutdown();
      }
docs: Shuts down and releases resources used by this couchDbClient instance.
  Note: Apache's httpclient was replaced by HttpUrlConnection.
  Connection manager is no longer used.