After printing the message, it calls “call_soon(run_scenario)”, and sometimes, if a stanza handler has already been queued, then that handler will be called BEFORE the “run_scenario” function could be run, and so no stanza_checker had the possibility to be set.