Add checking @therad instance in TailInput#shutdown