Kill threads when changing gamestate