Sustainability matters when economic shocks hit