How do you carry your battery, when leaving your bike locked outside in the city?

That's the question. I'm trying to think of a way to make sure it doesn't take a fall when I'm shopping. I'm imagining a closeable shoulder sling of some sort would be safest.
What's your solution?