Circuit-breaker pattern