Handle error for the download
error handle