Fix an error where clients in asleep state would hang after a HUP.