Bugfix when Game closed