TcpLink: now sets the socket as null on close