Gloucester Mayor Greg Verga said his frustrations “got the best of” him but denied his gesture was aimed at teachers or the crowd.