Added some more error checking for downloading datasets.