catch IOError and retry when AIN file can't be opened