Reconnect automatically the IMAP session after a connection error (Fixed #313)