Small fix for closing HTTP client connections