[#978772] Do not attempt login if user closes login window.