Add missing error checks to the artifact deployer