Stop the agent on upgrading