fix thread is not deleted after app quit.