Added error handling for memcached operations

closes bug 1314558

Change-Id: I1cea329176924883c06579f320657a065fee0873