feat(client.go) add closeCurl func