ORD BEND — A cropdusting plane crashed Tuesday afternoon after losing power, but the pilot was able to walk away from the wreckage unhurt.

Joseph Robert Krajarick brought his disabled plane down about 3:43 p.m., just north of Glenn County Roads 34 and WW.

The plane came to rest in a drainage ditch beside a flooded rice field. Krajarick had been spraying herbicide on rice fields when he lost power, according to Glenn County sheriff’s Sgt. Sean Arlin.

He was trapped in the plane for about 45 minutes, as the crash sheared off two power poles, dropping lines across the planes.

After PG&E de-energized the lines, the pilot was able to exit the plane under his own power, and an ambulance that had been summoned was released.

“I think he did an excellent job of getting this plane to the ground,” said Glenn County Sheriff Larry Jones.

About 40 residents in the area lost power, and PG&E estimated power wouldn’t be completely restored until this morning.

A small amount of diesel fuel leaked into the ditch but was largely contained Tuesday. No herbicide escaped. The state Department of Toxic Substances Control was en route to the scene at deadline Tuesday.