handle logged off events