Can deploy and undeploy. Having issue with error out if deploying and already deployed or undeploying and not deployed.