When communities face economic shocks, strong social protection systems matter.