Implementing logouts.