login process cleanup