Is there an rxjs operator or some other method for detecting when an observer unsubscribes from a subject?
This question talks about the finalize operato
finalize