protected Closeable getInnerCloseable() {
return CloseableUtils.sequential(getCommandCloseable(), super.getInnerCloseable());
}
protected Closeable getCommandCloseable() {
return new Closeable() {
public CloseFuture close(boolean immediately) {
if (immediately) {
commandExitFuture.setClosed();
} else if (!commandExitFuture.isClosed()) {
IoUtils.closeQuietly(receiver);