code: private static void closeQuietly(State state) {
          // ensure only closed once and avoid race conditions
          if (state.closed.compareAndSet(false, true)) {
              // set the state fields to null after closing for garbage
              // collection purposes
              log.debug("closing rs");
              Util.closeQuietly(state.rs);
              log.debug("closing ps");
              Util.closeQuietly(state.ps);
              log.debug("closing con");
              Util.closeQuietlyIfAutoCommit(state.con);
              log.debug("closed");
          }
      }
docs: Closes connection resources (connection, prepared statement and result
  set).
  
  @param state