add conditional stop if download fails