Fixes #5945: add windows support to services

i'm not sure if it does work as expected.
but it seems to me much much more correct to simply use the promise to stop a service if we want to stop it, rather than cross checking before, stopping it, and then copying classes