run the upgrade in a pcall