limited the "rescue" statement to the file read (before, it used to cover the whole method)