fix memcached connection leak