if(oldSession != null && !oldSession.equals(newSession) &&
oldSession.isConnected()) {
entry.releaseChannelSftp();
String oldhost = oldSession.getHost();
Message.verbose(":: SSH :: closing ssh connection from "+oldhost+"...");
oldSession.disconnect();
Message.verbose(":: SSH :: ssh connection closed from "+oldhost);
}
if((newSession == null) && (entry != null)) {
uriCacheMap.remove(createCacheKey(user, host, port));
if(entry.getSession() != null)