I just built it for Windows with a few modifications, it's working but I can't send a goodbye message when I want to terminate the service.