TL;DR:
- you can't hold on to uncharged black holes
- big black holes are too heavy and too low power output to easily use as batteries
- small black holes can't easily be charged
therefore
- you don't have to worry about confining the final moments of a black hole, because you won't be able to confine a black hole of any size in the first place.
There are other issues with your scenario, but I think BenRW has them covered.
Black holes make for terrible batteries.
There are a whole bunch of issues with using black holes as mere batteries.
Lets firstly assuming that Hawking was correct about black hole radiation and mass loss. There are some useful equations on wikipedia under black hole evaporation, but the main ones to care about are:
- the lifetime of a black hole is proportional to the cube of its mass. If black hole A is 10 times heavier than black hole B, then it will last 1000 longer.
- the power output of a black hole is inversely proportional to the square of its mass. If black hole B is a tenth of the mass of black hole A, then its power output will be 100 times greater.
- the schwarzschild radius of a black hole is proportional to its mass.
This means that the rate of power output and hence mass loss accelerates, which in turn means that it doesn't get really interesting til it gets quite small, at which point it is a bit too interesting.
In order to "recharge" a black hole battery, you have to pump mass or energy through the event horizon. When your black hole becomes smaller than ~2 fm across, this becomes a wee bit challenging because it starts getting too small to fit protons and neutrons into it. This happens at a mass of $M = {c^2r_s \over 2G}$ (where $r_s$ is the Schwarzschild radius of the hole and $G$ is the gravitational constant) or well over a billion tonnes.
This very-hard-to-recharge billion tonne battery only has a power output of 200 MW or so, which doesn't compare well with the same mass in, say, space-based solar power systems, or geothermal power, or even regular nuclear reactors. Smaller holes produce much more power (356 TW for a million-tonner), but suddenly you can't fit matter into them and instead the infrastructure required to recharge them looks like multi-terawatt or petawatt gamma-ray lasers which are a) hard to build b) probably highly inefficient, requiring many more petawatts of input power in order to function. Obviously if you can make kugelblitzes in the first place then you probably have suitable infrastucture, but "being able to wrangle a stupendously powerful gamma ray laser array to shoot somewhere" is not the same as focussing it on a particular subatomic black hole that you might not be able to hold on to and that is very hot and radiating exotic stuff back at you. That's a much more challenging bit of shooting.
The second problem is holding that billion tonnes of subatomic-scale stuff in one place. You can't just grab onto it. If it is in a gravity well like a planet, then it'll start falling towards it. It probably won't threaten the planet much (because a hard-to-recharge black hole can't eat matter at a problematic rate, which is why it is hard to recharge). If it were big enough to inject a load of protons or electrons into you could give it a net charge you might be able to hold it up electromagnetically, but it would need to have a stupendously high charge to be able to support its own weight, and such an object is a) incredibly hard to charge in the first place because of coulomb repulsion (its own charge repels the incoming ions), and b) inclined to neutralize its own charge by sucking oppositely-charged ions out of matter around it. A tiny black hole couldn't eat those ions, but you also couldn't charge it in the first place, which is awkward.
"Oh, I could charge it up in deep space and then let it shrink to below the size where it can't eat ions" you might think. The evaporation timescale of a billion tonne black hole is a good trillion years. You'll need to be patient, and there's still dust and gas in deep space.
"Okay, I'll just make a kugelblitz of a more manageable size and useful power output" great! But now you can't give it a net electrical charge, which means you can't hold onto it, which means it'll immediately fall into your planet and go foom deep below at some point in the future and possibly distress seismologists. Remember you can't get more mass-energy out of a black hole than it contained in the first place. A million tonne black hole will release 1026 joules during its evaporation, but that'll be stretched over ~2500 years which makes it not-exactly-Earth-shattering and gives you a little while to evacuate if you felt the need. It'll release ~6.6x1024 J in its final year (which coincidentally is about the same amount of energy that the Sun delivers to the Earth over a year), and ~2x1022 joules in the final second, but there's a lot of mass to spread all that energy over.
As I said above... black holes make for terrible batteries.
If you want to generate power from them, you want much larger ones and just soak up energy radiating from their accretion discs and polar jets (this can be surprisingly efficient, but requires quite a lot of matter to fuel the process). If you have a nice rotating black hole, you could use the Penrose process or the Blandford-Znajek process. Any of these approaches has a lot more in common with Kardashev 2+ stellar-scale engineering than batteries.