closeDialog: Make dialog inactive while fading out
Otherwise the user might click Kill, which would crash if the fade-out was triggered because a Wayland window was closed.
Otherwise the user might click Kill, which would crash if the fade-out was triggered because a Wayland window was closed.