The logfile comes out blank when I run it. The last time I ran the code before this issue was before I had added anything other than the basic setup, so it was supposed to close right away at the time. So I don't have a version that worked that I can check. When I did run that very early version it did produce a log file, however.
Just to check, there isn't a line of code needed that I may have missed somewhere that makes the window display is there? I've look through a few times and don't see one, but maybe I'm just missing it?