Added exception catch around end of game update