Fixed script so failed deployments are not fatal.