title: pygame.quit() hangs, even outside IDLE
body: <p>I'm using Pygame 1.9.1 with Python 2.7.3 on Debian,  </p>
  
  <p>I am trying to get a small test program working before I get any more advanced;<br>
  Things seem to work fine up until the point where I tell Pygame to quit.  </p>
  
  <p>I've read that you need <code>pygame.quit()</code>, at least inside IDLE (to make sure it quits cleanly,)<br>
  So I've got that - but <strong>it still froze</strong>.  </p>
  
  <p>The relevant code looks something like this:</p>
  
  <pre><code>def mainLoop():                                                                                                                 
      running = True                                                                                                              
      clock = pygame.time.Clock()                                                                                                 
      while running:                                                                                                              
          gameMode()                                                                                                              
          render()                                                                                                                
          key = pygame.key.get_pressed()                                                                                          
          for event in pygame.event.get():                                                                                        
              if event.type == QUIT or key[K_ESCAPE]:                                                                             
                  running = False                                                                                                 
                  print 'finished'                                                                                                
                  return                                                                                                          
          clock.tick(30)
  
  if __name__=='__main__':                                                                                                        
      mainLoop()                                                                                                                  
      print 'exiting after main loop'                                                                                             
      pygame.quit()
  </code></pre>
  
  <p>I run this and it prints out both 'finished' and 'exiting after main loop',<br>
  but even then hangs with the window still present.  </p>
  
  <p>Even more strangely,<br>
  I've pared it down to a minimal program that <strong>still hangs (that's this, in its entirety):</strong></p>
  
  <pre><code>import pygame
  pygame.init()
  pygame.quit()
  </code></pre>
  
  <p>Could someone shed some light on what's going on here?</p>