Use a shared_ptr for the HttpConnection in AsyncLogClient.