followup r79862: the for loop only cleans up half the output handlers (since $i count...