typos
More correct way of doing shutdown task