Syntax on ns. Now I'm embarrassed that this slipped past me
Break killing the auth thread out into its own function. It still doesn't work, but at least it's a smidge more clueful about why it's breaking