Fix JsonRpc error handling to call callback anyway with result.ok = false.