title: How to close a thread from within?
body: <p>For every client connecting to my server I spawn a new thread, like this:</p>
  
  <pre><code># Create a new client
  c = Client(self.server.accept(), globQueue[globQueueIndex], globQueueIndex, serverQueue )
  
  # Start it
  c.start()
  
  # And thread it
  self.threads.append(c)
  </code></pre>
  
  <p>Now, I know I can close <em>all</em> the threads using this code:</p>
  
  <pre><code>    # Loop through all the threads and close (join) them
      for c in self.threads:
          c.join()
  </code></pre>
  
  <p>But how can I close the thread from <em>within</em> that thread?</p>