more error checks with telnet operations