imap client hangs when using SSL