Close http sockets in couchdb driver