Data store exception handling. Fixes #307

I am handling the exceptions, but when I tried corrupting the XML file (by writing random characters into the tags), the exceptions weren't thrown. Please review and let me know.