proposed handling of Errors returned by doCommand