Hey there. I got an application that is an UDP socket which keeps an infinite loop used to read the UDP datagrams and reply to the client, this loop executes many tasks, I need to execute this application as a windows service but I need it to stop only when the final end of the loop. Have anyone ever done it before, or got any example to share?