[patch] TLS Handshake failures can crash imap-login