Report HUP and ERR errors separately.
Don't shutdown node for a HUP during write.