When in doubt… Just Log Out! If you get trapped inside of a building that is surrounded by zombies you can logout for about 5 to 10 minutes and all of the aggro of the zombies will be gone and you should be able to walk out of the building.