e.printStackTrace(logger);
if (channel != null && channel.isConnected()) {
channel.disconnect();
}
if (session != null && session.isConnected()) {
session.disconnect();
}
} catch (IOException e) {
logger.println("[SSH] Exception:" + e.getMessage());
e.printStackTrace(logger);
}