fix(attach): harden lease lifecycle and transport recovery (#825)