Replaced alternator which was damaged by turning battery off while engine was running. Replaced alternator. Turned key on and started engine. Runs perfectly. Turned key off but engine keeps running. Key switch works correctly. Battery voltage applied to coil when key turned on, alternator voltage appears at coil after engine started. Anyone have any suggestions as to why the engine worn't turn off when key turned off?