This could catch exceptions thrown by `dump_xml` (e.g. when the command fails to execute), it should be more specific and wrap the XML parsing.