Adds disconnect method to memcache.