waitThreadTermination