Shutdown navio2 command

So memory card on RP3 crashes everything time when I unplug the battery. So is there any any command to safely shutdown the navio2. Please advise

Have you tried this general command that shuts down any Linux computer?

sudo shutdown -h now