Security does a sweep, a group of security personnel start at each far end and check everywhere, as they move towards the entrance anyone lingering will be pushed along. I and witnessed this many times, and even been the absolute very last guest to leave Disneyland and Walt Disney World for the day.