Wrap file reading in a begin/rescue