My bet is that you create more than one widget and only remove the last one. Others get orphaned. What calls this script?
I’d move the removal to the widget itself, they can self-remove after x seconds after OnInitialised
. Handy if the widgets are supposed to be temporary.