Anytime early in the game after you've obtained the shovel, simply dig up all your plants when you get the final wave warning. In the early chapters the final waves aren't very big and when each lawnmower is triggered it will clear all the zombies on that row (which, by they time they get to the mower, should be all that the final wave will send.)