If the thread does not finish, you should interrupt it