private void closeAll(Collection<GuacamoleTunnel> tunnels) {

        for (GuacamoleTunnel tunnel : tunnels) {
            try {
                tunnel.close();
            }
            catch (GuacamoleException e) {
                logger.debug("Failure to close tunnel masked by closeAll().", e);
            }
        }

    }
Closes all tunnels within the given connection. If a GuacamoleException
is thrown by any tunnel during closure, that exception is ignored.

@param tunnels
    The Collection of tunnels to close.
extensions/guacamole-auth-json/src/main/java/org/apache/guacamole/auth/json/connection/ConnectionService.java