With all the shootings against police officers lately, I don't blame them for taking extra precautions. There was no need to use all the foul language directed at the officers. If you temporarily handed them the gun, they would have written you the citation, given the gun back to you and you would have went on your way fairly quickly. Instead you ran your mouth and made a big deal over it. You escalated the situation by not complying and your lucky as things could have gotten worse but didn't.