Fixed final login-logout process without event engine