Fixed return values in telnetconnection