Making a box land upright

I've just started dipping my toes into Box2d to make a game where the user shakes and throws a box around and has to guess what's inside. If they guess correctly the box opens to display the contents. This requires the box to be upright when it comes to a standstill. I could set it to fixed rotation but it looks a bit naff when I do that. What's the best way of going about this? I tried setting a few springy distance joints around it which worked to an extend but the motion of the box bouncing round the stage looked a bit weird. Is there a way to make sure it bounces if it hits the ground upside down, only coming to a rest if it lands upright? Or is there a better way to achieve this? Any help would be greatly appreciated.
create four points(b2body) and join these points with a distaneJoint along the edges of your box.
Code:
p1----p2
|      |
|      |
p3----p4

Then give p1 and p2 restitution of .7 , which will make the box bounce if it land on those points. And give points p3 and p4 restitution of say .1, which will make it less bouncy.
You could also attach a beginCollision listener to the box (or mebbe endCollision, not sure which would work better) and if the box isn't upright then apply an impulse to make it bounce up
Cheers guys. Tried a combination of effects, looked like there was a trapped animal throwing itself round in the box trying to escape. Not what you want for a festive Christmas themed game. A boring fade out/in reset it is I guess.

Original thread: https://box2d.org/forum/viewtopic.php?t=5609