Fix a potential leak of an unclosed AsyncHTTPClient.