qScopeGuard runs the method when the function goes out of scope. Without a local variable this is immediately. (cherry picked from commit b3abe752)