Nevermind it was my own idiocy coupled with insufficient debugging. Now i need to work out how to delete a thread.