Fix issue of not retry to login when login falied or closed