multithread: why main thread exit leads to other threads exit?

NoSuchKey