His failings hold lessons for liberals the world over