stop modules before dist-upgrading