My 315 poly keeps running after everything turned off..

^^A generator cannot "feed the ignition" unless something is mis-wired. Generally, a generator is connected through regulator, through the VR current relay direct to the battery.

I am assuming here, that the OP actually has a generator and not alternator, as he said he does