Open cycle engines don't have to vent the preburner exhaust randomly out the side. Some, like the F-1 engine from the Saturn V and the Vulcain 2 from the Ariane 5, vent the gases back into the engine nozzle which creates a "cool" film and protects the nozzle from the main combustion chamber...