some small cleanup, closed a socket