Reset the xml error handling after usage

the value should be reset to its previous value after usage