Why did you accept a weapon with the bolt closed and a magazine inserted? I have NEVER handed anyone a weapon with a closed bolt unless there was a malfuntion and the RSO wanted it. Bolt open, slide locked back or cylinder swung out, pointed in a safe direction. If someone hands me one, the first thing I do is open the bolt and lock it open and discuss my reasoning and actions; sometimes loudly and at length. For actions without an open lock, an open bolt indicator is your friend. Even a pencil can be an OBI in a pinch.
Obligitory rules restatement:
1. Treat all weapons as if they are loaded.
2. Never point a weapon at something you don't want to shoot.
3. Keep your finger off the trigger until you are ready to shoot.
4. Identify your target and what is behind it.
I'm glad your day didn't end badly. Try to educate your friend and keep to the rules. Everybody, let's be safe out there, OK?
Thanks for listening.