Added support for auto reconnection on error with exponential backoff