Read thread should exit as soon as possible when exiting.