Take even more steps to ensure that PyQt can't SEGFAULT on exit.
(before this work started, it happened about once every 5 runs for
me, now it's about 1 in 20-30, this should help even more)