Initial implementation of CircuitBreaker