Fixed window staying open on logout