Make sure no race condition happens when the events are delivered not in order. E.g. by comparing the timestamp on the payload.