docs: public boolean isFinished() {
      // If we have a HandshakeResult, we are done.
      if (result != null) {
        return true;
      }
      // If we have an error status, we are done.
      if (status != null && status.getCode() != Status.Code.OK.value()) {
        return true;
      }
      return false;
    }