code: @Override
      public void close() {
          // Check for previous closed.
          if (!closed) {
              try {
                  if (resultSet != null) {
                      resultSet.close();
                  }
              } catch (final Exception e) {
                  logger.warn("Could not close result set.", e);
              }
              if (statementCloseable && statement != null) {
                  try {
                      statement.close();
                  } catch (final Exception e) {
                      logger.warn("Could not close statement.", e);
                  }
              }
          }
          // Assume closed even if it fails.
          closed = true;
      }
docs: Closes the {@link ResultSet} and the {@link Statement} if applicable.