upon arriving outside the thick walls of gloucester , ruperts vanguard force of cavalry immediately surrounded the fortress and captured any soul that was too slow to retreat within the temporary safety of the walls .