fixed a bug where goroutines would block on unclosed httpclient.Transport