Fixes #5464: Make the rudder-upgrade script able to report errors intead of silently failing