Good catch, but while reading the function, I found another bug - if we
failed to add the domain to autodestroy, we still returned success but
without setting the domain to transient. I'm pushing this more
comprehensive fix:

Indeed, the return value hasn't been stored in 'ret' if we failed to add
domain