RB Leipzig's hopes of reaching the knockout stages in their debut European season were ended after they suffered a 2-1 home defeat by Besiktas amid late drama.
Elsewhere, Besiktas have already reached the last 16 and won Group G but both FC Porto and RB Leipzig can reach the last 16 with Leipzig needing to beat Besiktas and hope that Porto do not beat Monaco.
Just when Naby Keita thought he'd salvaged a draw for the home side, Brazilian midfielder Talisca scored with a half-volley in the final minute to earn Besiktas all three points.
Talisca scored for the victor for the Turkish giants in the closing stages of the game.
"We had enough chances to win four or five games this evening", lamented Hasenhüttl to Sky afterwards - and indeed Timo Werner did have the ball in the net half-way through the first half only for the goal to be correctly ruled out for offside.
John Lewis Won't Attend Civil Rights Museum Opening Alongside Donald Trump
For many Americans, the story of the Civil Rights movement was something they read about in newspapers or watched on television. The Museum of Mississippi History takes a 15,000-year view, from the Stone Age through modern times.
Timo Werner thought he had equalized some 10 minutes later, when the linesman's flag stayed down. TV replays showed it was the correct decision. The Besiktas goalkeeper and captain produced a host of saves to keep his side in front.
"This record makes me very, very proud", he said after the game.
The Guinean global brought them back into a game that had looked lost when Stefan Ilsanker picked up his second yellow card in the 82nd minute for a cynical foul on Cenk Tosun.
By then, however, Porto was all but assured of second place in the group. "It has always been my dream to play for Leipzig in the Champions League".
When Monaco relieved the pressure they were awarded a penalty for an alleged handball against Ivan Marcano and Glik drilled the spot-kick low into the bottom-left corner.