This seems to be working. Instead of N mosfet, NPN is added.
Whenever latch is pressed, output will be seen, and MCU is powered up. Now MCU pin is made inout high impedence.
When need to turn off, this MCU pin is made output low. This will eventually cut off the latch.
Will this work as intended?
We need to make as low power as it can be.