The ending of a mystery novel is often unexpected, yet it makes perfect sense.
The theme of a film should emerge from the film itself, not be imposed upon it.