Log out when stopping