We use a similar technique on both our boys, but we make them sit in a corner (they can see us). It works great because their behaviour always changes for the better after a short "time out" and a debrief/cuddle.

We've used this technique since DS1 was around 18 months old, he's now 5 and it still works great