private void handleEnd(GuacamoleInstruction instruction) {

        // Verify all required arguments are present
        List<String> args = instruction.getArgs();
        if (args.size() < 1)
            return;

        // Terminate stream
        closeInterceptedStream(args.get(0));

    }
Handles a single "end" instruction, closing the associated
OutputStream. If no OutputStream is associated with the stream index
within the "end" instruction, this function has no effect.

@param instruction
    The "end" instruction being handled.
guacamole/src/main/java/org/apache/guacamole/tunnel/OutputStreamInterceptingFilter.java