When the SWAT team comes to get you, this is what you do not do. Otherwise you'll be spending the rest of your life in prison. Despite the fact that you had absolutely no shot whatsoever at either (1) escaping, or (2) actually hitting the officers with any of the bullets you sporadically fired towards them.
Not that actually hitting them would have done anything other than gotten you the death penalty. Because in this particular context, you were surrounded and were going down. Why David Virgo decided to "shoot his way out" -- or, more accurately, fire shots indiscriminately into the woods -- and then give up is beyond me.
Apart from the fact that he's probably seen too many movies. That he didn't realize were fake.