Ensure MemCache connection closed

MemCache connection is sometimes too long-lived on ruby 2.1.