private static void closeConnection(Connection connection,
            GuacamoleStatus guacStatus) {

        closeConnection(connection, guacStatus.getGuacamoleStatusCode(),
                guacStatus.getWebSocketCode());

    }
Sends the given status on the given WebSocket connection
and closes the connection.

@param connection
    The WebSocket connection to close.

@param guacStatus
    The status to send.
guacamole/src/main/java/org/apache/guacamole/tunnel/websocket/jetty8/GuacamoleWebSocketTunnelServlet.java