What makes a good ending--in a mystery story, or in any story? A combination of the unexpected and the inevitable, of course. But there's also something to be said for one final twist (or trick, depending on how you see it), plus a few moral loose ends.