Closes the underlying HTTP client after in-flight requests complete. Once closed, this client cannot make requests or accept configuration updates.
Calling close more than once is safe.