For every client connecting to my server I spawn a new thread, like this:
# Create a new client c = Client(self.server.accept(), globQueue[globQueueIndex], g
How about sys.exit() from the module sys.
sys.exit()
sys
If sys.exit() is executed from within a thread it will close that thread only.
This answer here talks about that: Why does sys.exit() not exit when called inside a thread in Python?