[Engine] Cleans up objects on end game.