I think I've converged on a solution. Rather than some start-up hack, I'm going to put the cleanup command at the beginning of each script. Reason: apparently even just hot-plugging a sata drive in and unplugging it caused some turds to be left in the device space. Does anyone know why this happens?