Handle IOError when file not found