I must say that it's probably a bad pattern, but in my sandbox I created an interface that call a background service (that fires a thread and keep it live) every time I click a button.
This is good, cause I can create a chaos situation and found out how the environment will deal with this.
But, otherwise, I'm facing a problem: How can I get all thread currently running and kill them all. Calling GB or something.