Close chat after a certain time

Not sure if its possible already but I couldn't find that alternative. Anyway my suggestion is that you can close an chat so nobody more can write in it, if you want only temporary live chat. Also would be nice if you could choose when you embed it a date/time when the chat should be closed and a custom message to be written when it does close.