qScopeGuard runs the method when the function goes out of scope. Without a local variable this is immediately.