Like "Life on Mars", Sam lives happily ever after, in his dreams.
When he escapes torture at the end, he doesn't actually escape
Become a contributor adding a spoiler to this movie :