Try to avoid setting up manual event loop if wxApp.MainLoop() is being used