Block the gate with a unit or a corpse.
Yes, that's correct, but here's a small clarification:
If you block it with a single-cell creature, the gate will open after its death, but if you block it with a two-cell creature, the gate will not be opened after its death.
