in reply to Re: code executed at end of a thread
in thread code executed at end of a thread

Thank you, that's a good advice. I also found SKIP_CLONE with a description that fits ideally, but perl panicks when I use it :)