LOGGER.info("Deleting slave " + getName());
JCloudsSlave slave = getNode();
if (slave == null) {
LOGGER.info("Skipping, computer is gone already: " + getName());
return;
<BUG>}
if (slave.getChannel() != null) {

slave.getChannel().close();
}</BUG>
slave.terminate();

LOGGER.info("Deleting slave " + getName());
JCloudsSlave slave = getNode();
if (slave == null) {
LOGGER.info("Skipping, computer is gone already: " + getName());
return;
}
VirtualChannel channel = slave.getChannel();
if (channel != null) {
channel.close();
}
slave.terminate();
