Fix Thread handle leak

When a thread pool is release the Thread handle is leaked.