Update threads info and register info during debugging state
Close thread handle after use