code: public void close()
      {
          Context.LOG.debug("close context for {}", this.person);
          QueryCache.cleanByKey(getRequestId());
          if (getThreadLocal().get() != null && getThreadLocal().get() == this) {
              getThreadLocal().set(null);
          }
      }
docs: Close this contexts, meaning this context object is removed as thread
  context.<br/>
  If not all connection are closed, all connection are closed.