For the exception of a PK, the half or game ends when the clock hits all zeros. It does not matter if it is a corner, goal kick, free kick, the ball is in the air, etc. It ends when it ends, this is true for H.S. and college when a stadium clock is used.