make upgrade fail when an upgrade is already in progress