You mentioned threads. Are HttpClient::stop() and HttpClient::get() executed by distinct threads? That would be a problem.