[FIX] close window when signeout on detached window