Failure to logout still closes dialogue.