[kmf-jsonrpcconnector-client] improved error handling

Change-Id: I5124bbf9b887f924becde7d644f709aadd384a15