d2b20284d1
After hard stop, vmware-vmx.exe briefly holds file locks causing deleteVM to fail with "Insufficient permissions". Replace the fixed 3s sleep with a vmrun-list poll loop (up to 20s) that waits until the VMX is no longer registered as running, then retry deleteVM up to 3x with 0/3/6s backoff before falling back to directory removal. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>