Handle disconnections from SMTP server by reconnecting.