ensure that we clear the items in the login window - fixes spurious error messages about textures being cleaned up/unable to release.
(cherry picked from commit e1a37746018e21e5901466e350ac105125019ea4)