First try at shutdown code for RPi.