Fix protocol error handling in memcache module.