Fixed an issue with the new IMAPClient based architecture returning authentication errors differently.