Tested all the wiring again and found an intermittent ground that would cause the engine to run with the key in the off position, fixed the ground and the ignition functions as normal.