Fix a typo in the shutdown function