Catch IOError, too