Repeat upgrade until it succeds.
POD for constructor/destructor.