Deliberate mistake: The entire plot wouldn't exist without this one, but just before the engineer stumbles out the door and falls off, he pulls the big red lever on the left side of the cab. In the real world this puts the air brake system into its emergency mode. Among other things, this mode trips a solenoid which causes the engine to return to idle, and the electrical system to not put out power. Neither the Diesel engine nor the electrical system will respond to control inputs until/unless the air system is reset.
Deliberate mistake: To keep things simple, the movie relies on the Lancaster County Sheriff as a county police force. In reality, the county sheriff serves the county court (transporting prisoners, for example) but does not serve as a county wide police force. In PA, each city, borough, and township has its own police force. Note the varied colors of police cars at the farm in one of the final scenes. These were borrowed from the various local police forces (Lancaster City, for example, is robin egg blue with a white top).