public void closeAll() {

        // Close any active streams
        for (InterceptedStream<T> stream : streams.values())
            close(stream.getStream());

        // Remove now-useless references
        streams.clear();

    }
Removes and closes all streams stored within this map, logging any errors
that occur during closure, and unblocking any in-progress calls to
waitFor().
guacamole/src/main/java/org/apache/guacamole/tunnel/InterceptedStreamMap.java