Example of chat close callback