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

fixes #1685