As there is a "once only" controller, used for initial connections or login, it would be useful to have a "before exiting" controller, for disconnections and logout requests. It should be used only when the thread is about to end its execution flow.
Very good idea indeed.
It looks like your request is similar to Bug 61813. Is it what you expect ? Is my understanding correct ?
Yes it is the same idea. I also figured it would be used when the "test action" sampler is set to stop.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4743