Backwards-compatible fix for system-exit on IOError.