@Override
 public void consoleKilled(String name) {
   if (telnetsCache.containsKey(name)) {
     TelnetFrameworkAndroid telnet = telnetsCache.get(name);
     if (telnet.isConnected()) {
       try {
         telnet.disconnect();
       } catch (IOException e) {
         EclipseUtils.showInformationDialog(
             ServicesNLS.GEN_Warning,
             ServicesNLS.WARN_EmulatorConsoleHandler_CouldNotCloseTheConsoleConnection);
       }
     }
     telnetsCache.remove(name);
     DeviceServicesPlugin.removeConsoleKilledListener(listener);
   }
 }