Add ON_ERROR_STOP 1 to the upgrade script