The current EME spec says "the CDM may close a session at any point, such as
when the session is no longer needed or when system resources are lost".
However, there's no way to specify the exact reason for session closure. In
some cases, this is part of normal user flow, e.g. user close laptop lid to
put the device into sleep mode, where the player should resume playback. In
some other cases, this is due to some unrecoverable fatal error.
This is why the closed attribute on MediaKeySession
is updated to provide a MediaKeySessionClosedReason so that you
can handle session closure differently based on the reason.