Added state check in Circuit Breaker