Simplify try/catch