Make the upgrade script shut down services before deleting their files.