The GUI is now cleanly exited with a call to wx.App.ExitMainLoop rather than wx.Exit.
Authored by: bugman 2012-10-15
Parent: [r17814]
Child: [r17816]