Added the check on failure for the packagist.org download