Fix AttributeError when logging loging timeouts for telnet channels.