Add try-catch in run method to avoid the thread to die.