Question: when someone blocks you from leaving?
Answer: If they physically restrain you without any legal reason to do so (for example detaining a thief or preventing a law from being broken) then they are committing a common assault and you should call the police. If they have not physically touched you and are merely blocking your way then find another way out.