Merge "Add Thread#join to guarantee the termination of the thread" into main