err_exit now outputs the file and line number
exit IO loop if input fd is closed or bad