Fix typos in the `logout' and `shutdown' functions