After successfully flashing a modern custom ROM on my old phone, I tried doing the same with my girlfriend's old Lenovo Vibe P1m.
However, after mistakenly pulling out the USB cable at the worst time imaginable (flashing the recovery image), the phone wouldn't start anymore. Nothing worked - power button, power + volume up, down, both - nothing! So I'm guessing the recovery flash got corrupted. In great despair and guilt, I started looking for second-hand phones to swap the internal storage with.
After leaving it unplugged over the weekend though, the battery got drained, and, even though the power button still didn't work, the power + vol down buttons did show the boot menu, from which I managed to boot it normally.
That was a great story, but my question here is: what happened when I (practically) removed the battery? I know the clock resets of course, all cache goes away, but.. is the bootloader/recovery also reset?