Resilience Engineering for quality improvement