Service that dynamically spawns and kills managed threads?

Any suggestions on creating a nameko service that allows for an RPC call to dynamically spawn, and then later, kill, a managed thread?

So far, I’ve been able to spawn managed threads, but I’m looking for a way to stop them.