In the game above, White ran out of time and Black won. However, White's only legal move in the final position is Kxg2, which leads to a draw.
According to Lichess FAQ, the game is drawn if the position is such that the opponent cannot checkmate the player's king by any possible series of legal moves. So maybe the termination of the game above should be a draw? Is it a bug?