Fix previous commit
Since the dirmodel is long lived we need to disconnect the lambdas otherwise they trigger on other tests and it crashes since the reference to the local variable is no longer valid