Speaks to Scorsese's Catholic Sense of Punishment -- Just Like GoodFellas and Casino
SPOILERS FOR GOODFELLAS, CASINO, THE DEPARTED AND THE WOLF OF WALL STREET
There were murders in GoodFellas and Casino -- Mafia movies both -- but ultimately Scorsese was quite moral at the end of both movies.
The Mafia men got rich and lived the high life(at nightclubs) and even if married had goomars on the side but -- at the end of both GoodFellas and Casino -- a lot of these characters got executed BY the Mafia(especially in Casino) and put in prison (moreso in Goodfellas.)
There are no murders in The Wolf of Wall Street. The Wolf of Wall Street opens with Leo high on his own greed -- telling us about all his drugs, his mansion, his yacht, his too-hot trophy wife (AND his hookers) and --comes the end of the movie, he loses it all. Nobody on his team gets executed, but Leo goes to jail.
I think all three movies(and throw in The Departed for good measure and what happens to Nicholson, Winstone, and Damon) reflect a sense of justice and punishment in Scorsese's worldview that simply didn't sound as much in The Godfather(where Michael keeps his wealth and dies of natural causes, an old man) or The Sopranos(where whatever really happened to Tony, we were never shown him paying any price for his crimes.)
I don't know enough about Catholocism to know if that's the root of Scorsese's approach to the ending of his movies but its rather refreshing: crime doesn't pay in Scorsese's world.