trying to close login window