[PATCH v2 2/8] examples: handle cancelled history status