@Override
  public void close() throws SQLException {
    if (isClosed) {
      return;
    }
    closeClientOperation();
    client = null;
    if (resultSet != null) {
      if (!resultSet.isClosed()){
        resultSet.close();
      }
      resultSet = null;
    }
    isClosed = true;
  }
Invalid OperationHandle is a special case in HS2, which sometimes could be considered as safe to ignore.
For instance: if the client retried due to HIVE-24786, and the retried operation happened to be the
closeOperation, we don't care as the query might have already been removed from HS2's scope.
@return true, if the response from server contains "Invalid OperationHandle"
jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java