Resilience of agricultural systems against crises