Threads exits more gracefully now.