stop download if write cache file failed