Thread terminations corrections.