I always couch my lesson plan with some activities that we might not get to. Never the lecture or pertinent information, but some extra writing or fun game, just in case the lesson plan speeds past. If I write a long agenda for the day on the board, then they are never surprised when class doesn't get out early, and I'm never stuck with 20 random minutes at the end of class.