Switched to thread-safe HTTP client connection manager to avoid problems
with asynchronous API calls.