[TIMOB-17818] make exitOnClose settable at any time
[TIMOB-17818] fixing doc issue