code: public void onFailure (Throwable throwable) {
      for (Thunk thunk: this.thunks) {
        thunk.callback.onFailure(throwable);
      }
    }
docs: When batch is sent with an error return, this method will be invoked