I had a similar bug happen to me. If you reduce your emissions to zero the moment time runs out the game counts it as a loss.