Store the count of garbaged tree errors in the ExitState