The circuit works perfectly well in that everything switches on with a press of the button, the first line of code pulls GPIO2 LOW to keep the circuit powered on and at the end it makes GPIO2 HIGH to power itself off.
The issue is with quiescent current. The HT7333A regulator is drawing 3.8uA when the circuit is off. I really can't see how this can happen as the device has no path to ground once the MOSFET is open. I appreciate that 3.8uA is particularly small but the idea is that this will last for some considerable time on a set of 3xAAA batteries.
Can anyone more experienced that me tell me how this HT7333A is drawing current? How is the circuit completed?