pub async fn stop_session(realm: &RealmProxy) -> Result<(), StartupError>
Stops the current session, if any.
realm
StartupError::NotDestroyed if the session component could not be destroyed.
StartupError::NotDestroyed