It depends on the use case - if the user is navigating away, I don't think ending the conversation is what you want to do (take a look at how seamframework.org works).