Best to bring it to a shop that can scan for codes.

It's probably linked to the engine dying. Could be a number of things... but most likely related to a failing sensor.