stop writer if read_log exit