Fixed a missing variable assignment that was keeping the shutdown button from working.