Lifecycle owners (App and project switching) call this hook to discard a client before replacing the project root or leaving the UI.