Stop execution of upgrades if error is detected