A circuit breaker class library