[runnermodeltest] Wait for query to finish before destroying model
Otherwise we destroy the runner while it's still active in another thread, causing crashes
The test still fails, but at least it doesn't crash any more
Otherwise we destroy the runner while it's still active in another thread, causing crashes
The test still fails, but at least it doesn't crash any more