Reconnect and retry on connection exceptions