code: void teardown(CallInfo callInfo, boolean closeConn) {
      logSetup(callInfo);
      if (pool != null) {
        for (WrappedStatement ws : pool.values()) {
          ignoreSQLException(ws.getStatement()::close);
        }
        pool.clear();
        pool = null;
      }
      clearSavePointIfSet();
      log.close();
      log = null;
      if (closeConn) {
        ignoreSQLException(connection::close);
      }
    }
docs: Tear down the database handle, freeing any internal
  resources.
  @param callInfo Call info.
  @param closeConn Close underlying connection.