adding code to close socket.