Retrospective recording imaginary notes off

Retrospective recording during the playback tends to fail if there are MIDI notes that are not “closed” (i.e. note off is not yet received).
This really makes me sad, especially when I played the phrases pretty well.

Can we make those “open” notes forcibly “closed”?
Perhaps retrospective recording can insert imaginary notes off for those that were still playing at the time the playback stopped.