Cleanup of Testcases, really exit on window close