IMAP client cleanup