quit unhook threads when the main thread quits for the first process