code: public void connectionFailed (String ident, boolean readOnly, Connection conn,
                                    SQLException error)
      {
          try {
              conn.close();
          } catch (Exception e) {
              log.warning("Failure closing failed connection",
                          "ident", ident, "ro", readOnly, "conn", conn, e);
          }
      }
docs: from ConnectionProvider