Run dialogs after the GUI has been killed

This will make sure the dialogs do not hide under the GUI.
Merge pull request #34 from KanoComputing/kill-gui-before-dialogs

Run dialogs after the GUI has been killed