Better logging + don't freeze on imap errors.