State and local governments could learn from crises