Unset "Release when closed" flag in dialogs.

Fix a console warning complaining about that flag being set.