Add retun value to 'rpc' function indicating if there was an error.