Refactor StopWindowsService Method