What? No watchtower on those walls to have a look over first? Now to see if he'll remember how easy it was to part the walls and how easy it would then be to quickly close them or if he's going to scream and run.
Well, typically speaking, since the bear already has their meal, so long as you don't antagonize them everything should be fine. But backing off nice and slowly-like and then slooowly closing the door is a good idea.