FIXED: Handle leak.

Fixed thread handle leak.