remove unused code
fix cleanup after closing of dialogs with close button
don't try to connect to the host without name

and throw npe:
java.lang.NullPointerException
null
ch.ethz.ssh2.KnownHosts.hostnameMatches(KnownHosts.java:314)
ch.ethz.ssh2.KnownHosts.getAllKeys(KnownHosts.java:258)
ch.ethz.ssh2.KnownHosts.recommendHostkeyAlgorithms(KnownHosts.java:528)
ch.ethz.ssh2.KnownHosts.getPreferredServerHostkeyAlgorithmOrder(KnownHosts.java:
282)
lcmc.utilities.SSH$ConnectionThread.run(SSH.java:1461)