Called once when session closes locally, exits remotely, or reports a transport failure.
session that reached a terminal lifecycle state.
close metadata captured from the connector/session path.