Fixing a problem with leaked dialog
Web login has a higher priority now.