exit when download fails