The plan to "hand over a gun" I think is a very bad plan. The officer has no way of knowing whether there is a chambered round or not. It won't matter because the officer will assume that the gun is ready to fire.
If you are ever in such a situation, I recommend that you drop the gun to the ground, in whatever state it is in after the incident, and, if necessary, stand on it while holding both hands up with fingers spread wide to show that you are not holding a weapon. As the police approach to take charge of the scene, you can walk several steps away from the gun so that it is nowhere near you if you are ordered to the ground.
If you leave the gun on you and an officer orders you to "drop the gun", I wouldn't be surprised if you ended up shot dead if you touch the gun.
I'd bet that the recent police shooting of a man coming out of a Las Vegas Costco probably went down that way; with one officer ordering the man to the ground and another ordering him to drop a holstered weapon. Touching the weapon, under the orders of one officer, would then prompt the other officer or officers to open fire.
Of course, I didn’t mean literally hand over. Perhaps I should have said, “point to that gun on the ground over there and inform the officer of the gun’s readiness or condition to discharge if were to be handled”.