Handle error, when opening XML file