Remove depricated flag
Fix thread count

Decrement count when thread is destroyed