I always have a VNC open and manually shut the Pi down with sudo shutdown -h now, which I assume works because the Pi goes away. I would test it on my Pi, but the Pi is outside and the ambient temp is 115F. I'l have to wait until it cools off a little before I go out and power it up. I will later. I have to know.