Dismiss modal ErrorDialog correctly in wx 2.9
* must call EndModal to reenable toolbar/menubar
* reordered continue/submit buttons