Upgrade mismatched commit() warnings to exceptions