Switch to using destructors to free tls contexts for home servers