The problem is that in some cases when a spec fails, `afterEach` doesn't run. We see this problem a lot with integration tests that open a window and the window isn't closed when the test fails.