hmm, wait, maybe it is your fault
you should try STOPPING the service, not killing it
you can do it via GUI, or by command-line (net stop servicename)
try and let me know
Sorry for the reponse time.
With command-line net stop "hfs" (hfs is my service Name).
However, it does not safeguard the statistics.
I already tested:
--> net stop hfs
--> taskkill.exe/IM hfs.exe (without "/F "thus with clean closing)
--> taskkill.exe/IM /F hfs.exe (closing to force).
With each time the data are not to safeguard.
I think that the request for safeguard, in your code is not in the génèrale part.
And thus not accessible to all the orders from stop.
It must be only put in the part of the cross or the menu to stop.
records every 5 minutes automatically will be a good compromise. In the worst case the one lose a little statistics, but not very when the waiter is to launch since 1 or 2 days.
Sorry for my English. I help use of Google.