I assume you use sockets, do you close them and then exit the program?