Disconnect all memcached connections after thread creation