Fixed shutdown module again

Good thing I'm not doing this on the master branch.