Why did you need to rack the gun, was it not ready for action?
I have racked a gun for effect, dropping the live round that was in the chamber out of it. The end result was what I wanted, I didn't have to fire the remaining rounds. This was in a vehicle, where I wasn't planning on shooting, but driving through the attackers. However, shooting would have been my second move (along with the hearing problems from discharging a pistol in a confined space.)