fix(agent): Do not reuse `http_client` on failures.
The http_client
is instantiated with the agent, and reused all the
time. If the connection fails and closes, it's sometimes not possible
to reuse it.
Fixes #37 (closed)
PS: We might want to (at least try to) add tests to check this works as intended.
Edited by Alexis Metaireau