Measure telnet ping/pong
Measure writes OK/NOK
Return proper reply to the caller
Make write failure schedule reconnect
Remove unused variable
Remove useless debug messages
Ignore ping calls when connecting