You don't have to make a work of horror to give a movie a scary ending, as shown by the likes of Threads, Come and See, and ...
Some filmmakers have no qualms about sending audiences out on the bleakest note; others famously watered down their conclusions. These are among the most debated.