You have the 12V supply which directly drives the motors and drives the Arduino through a buck converter. So if you want to shut everything down, you would be switching off the 12V supply, and there would be no battery measurements by the Arduino after that even if the voltage rebounds because it would be off. Is that what you want to do?