There are a few things I skipped over like creatin...
# tornadofx
c
There are a few things I skipped over like creating the file initially. Also, you may want to slip an "EXIT" in place of the counter value as a cue to the Executive that it should kill itself as the UI is going down expectedly.