Resilience is?