Send TLS close notify during tls_socket_t destruction