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

should fix #1685

please test this! it works for me, but you never know...