Threads are now ending cleanly.