fix restarts on upgrades
Merge pull request #626 from virgo-agent-toolkit/fixes/restart_shutdowns

fix restarts on upgrades