Replace the block/rescue that caught any error -- including templating errors in the debug task -- with explicit conditional cleanup gated on nvidia-smi's actual return code. A cosmetic failure can no longer roll back a working install. rc 18 (driver/library version mismatch) now fails with guidance and leaves packages intact.