func (s *manager) Close() error {
	if s.client != nil {
		CloseIdleConnections(s.client)
	}
	for _, client := range s.baseURLClients {
		CloseIdleConnections(client)
	}
	return nil
}
Close closes mananger
package http
import (
	"github.com/viant/afs/storage"
	"net/http"
	"sync"
)
type manager struct {
	client         *http.Client
	mux            sync.Mutex
	baseURLClients map[string]*http.Client
	options        []storage.Option
}
func CloseIdleConnections(client interface{}) {
	type closeIdler interface {
		CloseIdleConnections()
	}
	if closer, ok := client.(closeIdler); ok {
		closer.CloseIdleConnections()
	}
}