[TIMOB-17818] make exitOnClose settable at any time
[TIMOB-17818] fixing doc issue
Merge pull request #6265 from jonalter/TIMOB-17818

[TIMOB-17818] make exitOnClose settable at any time