made sure daemon exits if failed to read.