Fix fail() message: save totalMaxIO value before resetting it.