Web lists-archives.com

How do I stop my PyQt programs canceling shutdown?

I have 2 PyQt programs that if I leave running and then tell
Plasma to shutdown will give me a notification that shutdown
has been canceled.

I'm not aware of adding code to cancel a shutdown. Do you know
where I should look to fix this?

Also after I manually close the offending app after there has been a
cancel message a further shutdown does not seem to start closing
the windows(?) that are running.