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

All in the title