mdadm: rescue from potential exceptions