Handle any exceptions when opening code files