The last post in that thread tells you what you need to do:
Write a script:
Close WIndow [current window] // or you can specify the actual window you want closed by name.
Enter layout mode on the layout to be used with the window when you want this feature.
Place a button on this layout and use button setup to select the above script as the script to be performed. In the Current script drop down, select "halt" in place of the default "pause" option.
You can also end the above script with a Halt Script step and get the same results.