fix kvm upgrade exit code