Add log out handling.