Modified KVClient (added try/catch) for autograder