deploy.sh: Different error code for state change