ShutdownThread: Cleanly shutdown when powering off

Signed-off-by: Brandon McAnsh <brandonm@matricom.net>