I forgot to make the repaint thread daemon.