exit on IOError