Shrink the scope of the try-catch