Implement user logout.