Finished threads are properly terminated instead of using a busy loop to prevent further code execution in them.