To improve stability
applied condition-case so failure don't lead to another failure.