Improve tracking of failure events in install_juju.sh