Close the imap connection when clearAuthentication() is called.