Better hadling of exception in XmlDao