The way to make this experiment similar to rockets would be to attach a box around the rocket engine. That would mean that the exhausts bounce off of the box and no work would be done.
However, there is nothing blocking the exhausts, so there is work done.
If there were a box around the engine, it would be enclosed.