catch cache file management errors; make sure downloaded filesize is an integer