wxPython UI in a Excel plugin using Pyxll, crashes win10

I have an excel plugin built using Pyxll which has a wxPython UI. It has been working fine in window 7 and when I switched over to windows 10, it still opens up the UI and the interactions go through but when I close the UI, it results in excel crash.

The information form the windows event log -

Faulting application name: EXCEL.EXE, version: 16.0.4912.1000, time stamp: 0x5d77ece7
Faulting module name: wxmsw30u_core_vc140.dll, version: 3.0.5.0, time stamp: 0x5db788be
Exception code: 0xc0000005
Fault offset: 0x000a01ba
Faulting process id: 0x2db4

FYI
OS - windows 10
application - Excel 2016 ( 32 bit)
WxPython version - wxPython 4.1.0a1 and 4.0.7.post1 ( tried both)
Python version - 3.7.4 ( also tried Python 3.5)

Thanks,
Nachi