Finish sign-in and sign-out