I discovered that I had to set the number of loops required, then take note of the absolute time the last track played and set the ending time within that tracks window. After that it closes as expected :-)
Right or wrong, I don't know, but it works :-)