From recent news reports the official reason given for closing the gates was for security because of VVIPs having attended.

What I don't understand is - why weren't the organizers prepared for that circumstance?

Haven't similar situations arisen before in Qatar? How were they handled?