Handle upgrade errors