No matter what I do, the window will never quit on QUIT event. It would either ignore me pressing the X button or go into "Not responding" mode. I usually restart the shell and then force close it from the Windows.
None of these methods work and not even all of them together.
for event in pygame.event.get():
if event.type == QUIT:
done = True
sys.exit(0)
raise SystemExit
break