This issue is almost a FAQ material.
To summarize, it is not possible to disable a stream from the outside. You can, of course, pass the stream object to any function you want, but there are no kill and exit calls in the stream library.
There are more or less two different ways around this, depending on what your thread is doing.
- , . : Thread Python? " ", .
, . -, -, , - . - -, , , N , .
- . . , . , .
-, , , , , , , -, .