Fixed Shutdown module

Now no longer crashes.