Cleanup the game loop