Send a HUP to the terminal's controlling process if we get EOF.