Telnet thread

Execute telnet sessions inside a thread to check when they finish.
To check if it works, right click on a running device (I tested a Cisco 7200), click "Console".
The GUI should print on the log window something like `Console DONE on port 2001` only after you close the terminal window.

If you see the debug message printed on the log shortly after a terminal window appeared, it's not working.