Added onClose() hook to conversation context.