On Windows, the threads reading pipes continue to run even after the direct child process exited. Problem: at Python exit (main process), Python hangs on calling threading._shutdown () which waits ...