added _Notify flag in Thread
added Thread destructor
changed order of logic in RunHook()