async fn settle_pty_exit( login: &Login, exit: Result<Result<ExitStatus>, JoinError>, ) -> Result<(), Ended>
End the session by how the PTY child exited, when its output did not already: Err when the session ended first.
Err