when it turns off is it total shut down no lights on dash,,, or still have lights on dash,,, if still got lights on dash it maybe start stop function to blame, might be a switch on gearbox or maybe linked to a faulty body control module perhaps,, ie that would also explain the other random fault,,