Use atexit to call the wxApp_Cleanup function, and also some other fixes to ensure that it is really calling the wx method.

git-svn-id: http://svn.wxwidgets.org/svn/wx/wxPython@73449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775