fusion: fix memory corruption in single-app mode
        (fusion ref was already destroyed after execution completed)