code: @MainThread
      private void handleEventFailure(Event event, EventFailure failure) {
          if (!activeEvents.contains(event)) {
              Utils.logE(event.getKey(), "Cannot send failure callback of finished event");
              return;
          }
  
          scheduleFailureCallbacks(event, failure);
          executeTasks(false);
      }
docs: Handles event failure