Wiktionary
that's the way the cookie crumbles
prov. That is the way things happen; that's life.
Wikipedia
That's the Way the Cookie Crumbles
That's the Way the Cookie Crumbles (Živi bili pa vidjeli) is a Croatian film. It was released in 1979.