issue #462 - deactivate AWT in OnExit handler of wx's app