Closed sockets when done (to make sure resources are released)