Fault tolerance in KeyValueStore and HandleCommands