This seems like a pretty ingenious way to deal with a thief - the first time. Pretty sure if they come back they're going to know what to do the next time.
Also, at the end, look at how considerate that criminal was, holding the door open for the officer so that the officer didn't also get stuck in the trap room. I guess he didn't want to put the officer through what he'd just experienced. Either that or he didn't really want to get away. I know what you're thinking, of course the officer had a partner, but if the door closed then the partner might try to free the officer on screen and that would give the thief a chance to escape.