Exit correctly from the download process when it fails (storage full)

All in the title
Won't this call cause the success because of the line above (177)?