Adding checks for opening the breaker. Adding tests for exception handling.