Make 'sy daemon stop' more reliable on Windows, fixes #230