Close dialog after test runs