improved fail detection in upgrade dialog