Added close to socket.