sign-out event handler