VX(C): Refactor the circuit breaker state to use the Task class. Add the open state exception and improve the test coverage.