countdown and short circuit termination of loop