Backfire-after turning key off

Trail- no the idle was acting different. I would come to a stop and it would be high. I have been wondering why. Don't know if its related