Why can’t people write good endings any more?

The Hurt Locker, Up in the Air and No Country for Old Men are all good films spoiled by the finales. Have screenwriters forgotten how to satisfy audiences or are they perversely choosing to frustrate us?