Invoked just before the message resigns its active status.
- iOS 10.0+
The conversation that the user is currently viewing in the Messages app.
Override this method to perform any cleanup activities just before the Messages extension is dismissed. Avoid doing any time-consuming tasks in your implementation. This method should return as quickly as possible. Also, avoid making asynchronous calls, because the extension might terminate before the asynchronous tasks have completed.