fix to hang on exit by window because pygame.mixer.quit() hung