The ending absolutely made sense. The killing of Sadowski was perpetrated by Kasia and Greger, by and large, covered it up. Tadek was manipulated into arresting the wrong man and, therefore, the truth cost him his life: Kasia told the true story of Sadowski's murder to a dead man too obsessed and blinded by emotion.