Added error handling to xmlhandler.