Should this block be moved outside of the try-catch to make it as small as possible..?