Like when you get stuck behind doors! I initially tried increasing the collider size, but it seems the best course of action would be making the doors have a timer and whether or not the player is still there, the door will close, ending your entrapment.