Maybe it could help to explicitly call pygame.quit before thread kill. Why do you need this? Might be able to remove that requirement. -- Jake