circuit breaker failure protection function