A Buxton man faces felony charges after allegedly trying to avoid a state trooper’s ticket by shutting off his headlights and accelerating to 120 mph on the Maine Turnpike.

The trick didn’t work. Instead he crashed into a guardrail at the Portland Jetport exit.

Joshua Mains, 27, is being held at the Cumberland County Jail on $360 bail on charges of eluding an officer, driving to endanger, criminal speed and driving with a suspended license.

Police say Mains went past Trooper Bernard Campbell going 91 mph in a 65 mph zone in New Gloucester at 1:20 a.m. When the trooper caught up to him, Mains, who had a radar detector in his 2005 Honda Accord, had slowed down, police said.

But when Campbell activated his blue lights, Mains turned off his lights and sped up to 120 mph in what he later said was a trick that had worked once before for him, police said.