Fixed some XML errors and retries

Fixed some errors in XML exported by last.fm
Also updated some of the retry logic to allow clean failures if
required, and to kill the pools if we get an error so resuming is
quicker (if an HTTP connection hangs)