Add BackendError and handle connection errors