Add doc for close and tls.