Mosfet battery switch
Consider using a high-side switching arrangement made from two transistors: -



When the MCU disables the N channel MOSFET the positive supply is dosconnected hence the logic control line from the MCU has nowhere to go except to 0 volts. Make R1 fairly low to guarantee a decent pull-down (=&lt; 10 kohm).