In the age of automation, the “human error” that dooms a plane isn’t confined to the cockpit