Well,... mine used to kerpoww on shutdown... but, I've changed jetting, muffler , idle, and air filter...
Now, it just goes whoomph...
...but,... regardless... jet your bike to run well...
If it runs well,.. don't worry about what happens when you turn it off...
It don't matter...
Most of that, is just unspent fuel from the last cycle, blowing up in the hot pipe...
You can jet yer' butt off to make it go away... but, then you'll be jetting to stop instead of to run...
Running is more important...
...