Risk-aware recovery