better thread exit; almost no LPTSTRs; better log; fewer events