pluginfw/installer: Only restart the server when all tasks have finished

fixes #1685
Merge pull request #1718 from ether/fix/plugins-multi-install

pluginfw/installer: Only restart the server when all tasks have finished