add close reason when read failed