Potential fix for one case of hanging-on-exit

I ran into a few hangs-on-exit that this MAY help address. This allows the thread that's waiting for python threads to exit to raise python system exceptions within the threads it's trying to get to exit.