Delete the widget afterwards. close() only hides it, not destroyes it, thus it's still in the list.