fix destroy so incoming module vars get set

I ran into this while testing out a destroy while giving a variable to a module which then informed a count. If anything was referring to that count as well, it also was blowing up for not finding the attribute. But setting the incoming module vars fixes it.