Don't call conn.logout if conn.connect failed
Merge pull request #766 from Singly/bg-fix-imap-crashers

Don't call conn.logout if conn.connect failed