Originally Posted by AdamW
what exactly do you mean by 'do not close properly'?
They do not close when the 'x' at the right hand end of the title bar is clicked, nor when 'Close' is chosen from the context menu which is presented after clicking the application icon at the left hand end of the title bar.
See my sample application referred to above for an example. You will need wxPython installed to test it.