This is a bit heavy handed for displaying some text. It might make more sense to just have a text widget in your main HUD that you can temporarily display text to.
That said, for the example above, try setting the created widget to a variable then use that variable when removing from parent. Follow that by clearing the variable by setting it to None so that you clear any reference to it.