Free eventq and thread handle on thread exit.