Getting the timing of classes right can be a challenge to most teachers. There is inevitably pressure on time, as many classes try to "do" as much as possible in the time available. Finding that time has simply run out is a common experience. With that in mind, it is useful to plan the end of sessions as carefully as planning the beginning, and then to watch the clock so that you can decide when the "end game" needs to start. An obvious element in "ending" that many class teachers include is to summarise the ground that has been covered, key learning points and main issues raised. This can give a sense of "neatness" and closure to sessions.
Another way of looking at the end of a class though is to see it as an opportunity to prompt students to further study. Rarely will a class manage to "complete" the topic under discussion. As such, you may wish to consider ways of using the summing up more as an opportunity to identify any "gaps" or issues that haven't been addressed, key readings which you may be have noted students have not yet read, but probably would benefit from spending time on, and in giving students some pointers as to further work they may engage with. Finally, it is often worth reminding students what will be covered in the next class and prompting them to plan ahead, to make links to the next lecture and class, and ensure that everyone is on track to make the most of the next class in the series.
"I find important ending the class with a summary of the key arguments discussed, results found and conclusions drawn."
"wishing them a nice weekend at the end of class, showing that they are cared for"