Handle IOError last