Skeleton for logout method