Fix inability to quit NVDA.
On some systems/configurations, the main loop started in gui.terminate seems to continue running forever, even though the main frame is destroyed. This is probably because the main frame gets completely destroyed immediately. Therefore, make sure the main frame is only destroyed after the main loop starts by using wx.CallAfter.