nfit, tools/testing/nvdimm/: unify shutdown paths