close test window when all tests succeed