The circuit shown below could be used to permit the Arduino to turn off all power. But then you would have to push the button to turn it on again.
Also, the voltage divider used to measure voltage would have to be placed downstream from the mosfet so that it will not source any current into the analog pin after the mosfet is turned off.
You really need to post your circuit. Without that, we're all just guessing.
