One thing to do might be to check main.log for "ERROR" and if that exists set 'UpgradeStatus' to unknown.
One thing to do might be to check main.log for "ERROR" and if that exists set 'UpgradeStatus' to unknown.