Turn the weapon over to the officer in this scenario? Hah! That will be the last time you see it. He’ll either keep it or take it back to the station and gift it to one of his buddies. His traffic cam will somehow missed that part of the exchange.
Police are not your friends in these times. They exist to draw chalk lines around your body and string yellow tape at the site.
In states like California, cops are becoming bagmen for transferring the citizens’ money to the state. The days of Officer Friendly giving you a warning are over.