Wait until the testing window is closed