Threads shutdown (mostly) properly

need to fix brute and stackoverflow when consumers shut down