Add improvements to release the thread control interface.