i'm not fond of keeping this in a closure. better make it a semi private property (ie, prefixed by `_`) of ThreadUI, and reset it in `init` so that the tests don't fail