Fixed state when select() fails on IMAP