Changed order of the shutdown to fix a crash of the WebUI plugin.
First stop the plugins then the other services.