tcp: break the timeout loop early when tvheadend is in the shutdown phase
cwc: do not show error on read in the shutdown phase
httpc: fix the basic auth