fix async close of dialog in afterEach