code: private void closeSessionWrapper(SessionConnectionWrapper sessionWrapper,
                                       String logText) {
  
          try {
              sessionWrapper.close();
          } catch (SQLException e) {
  
              //ignore exception. The connection will automatically be removed from the pool.
              logInfo(logText, e);
          }
      }
docs: Closes the session wrapper. The call to close() will in turn result in a call to this pools
  connectionClosed or connectionErrorOccurred method. These methods will remove the PooledConnection
  and SessionConnectionWrapper instances from the connectionsInUse and sessionConnectionWrappers collections,
  and do any necessary cleanup afterwards. That is why this method only calls sessionWrapper.close();
  @param sessionWrapper The session wrapper to close.
  @param logText The text to write to the log if the close fails.