Custom Output stops receiving batches after errors

With “infinite retry” approach events might get lost on filebeat/winlogbeat process restart (due to host restart)
Am I wrong about it?