For when the other thread gets closed.