Simplify try catch