Fix potential data-loss bug in disk wipe routines