Thread cleanup.
Thread cleanup.
Thread cleanup.
Updates
Latest
Added verbose switch and made stack trace output conditional upon it.