Improve segment semantics.
Add event ID base to segments.
Return status of segment flush operation.