Previous call record/entry is missing when iPhone tuns off due to low battery condition

Consider a scenario where you are in an active voice call and your iPhone is switched off due to low / zero battery charge. You plug in to charging and wait for iPhone to turn on. Now check the call records / phone app (Recents) and notice that previous call entry is missing in the list.

Is this a bug I noticed? Or is it design behavior and requires improvement? Seems like call entry is recorded only after the call is ended (or dropped) voluntary by the user. In case of iPhone is turned off due to low battery condition, code that audits this phone activity never gets a chance to run.