Run dialogs after the GUI has been killed

This will make sure the dialogs do not hide under the GUI.

These are all the dialogs I could find.

Feel free to merge @alex5imon if it's ok.

cc @zsero @skarbat