Thank you sooo much helping and so quickly updating to 10.12.4 ! Please, please continue to post your findings with the update. Hopefully 10.12.4 fixes the shutdown artefacts nightmare. I'm crossing my fingers for you/us. Like so many others who have posted on this problem, I am in desperate need of a fix. I'm on my second new iMac with no resolution of the problem.
Here's the background:
I have been an iMac user since the year 2011. However, after this experience, I can't say that I will continue to be.
On Mar 15, 2017, at a physical Apple Store, I purchased a new iMac (iMac Retina 5K late 2015 model, 3.2GHz Intel Core i5 with 6MB L3 cashe, 8 GB of 1867MHz DDR3 SDRAM, AMD Radeon R9 M390 with 2GB of GDDR5 memory, 1TB Fusion Drive, OS X 10.12)
Data migration was done by the Apple Store Geniuses via Migration Assistant from my old 2011 iMac to this new iMac. After about the 5 shutdowns the dreaded screen artefacts appeared. On shutdown the screen would go dark grey followed by about 3 seconds of the artefacts, followed by normal black screen shutdown. I made numerous calls to AppleCare seeking resolution. One person, said Apple is aware of the problem and working on a fix. Another said Apple was unaware of the problem. In all cases the AppleCare people, after going through a few things with me (like NVRam Reset, Safe Mode Start-up) told me they did not know what the problem is due to. Most said they felt it was a software or firmware issue. They suggested a clean reinstall of OS X, something that I was not prepared to do and didn't do. I came away very frustrated and disillusioned with the entire AppleCare experience.
Out of sheer frustration and dispair, I returned the new iMac to the Apple Store. They replaced it with another new one with the same exact spec's. Using Migration Assistant, they did the data transfer from what my new iMac to this new replacement iMac. Then, after their data migration, and while at the Apple Store, I started up the new replacement iMac. Upon the second shutdown, it displayed the same exact shutdown artefacts problem. At that point I went a little crazy. So, the store manager brought out a high level Genius to observe the problem and try to figure out what was going wrong.
First, the Genius ran a diagnostic of the graphics board which showed no problems with the graphic board. At that point, he went into the Genius room to consult with his fellow geniuses. He then told me "their" opinion is that the problem is not hardware related; rather, that it is software related and probably caused by something that migrated from my old 2011 iMac - most likely the USER FILE. And, that while the shutdown problem is a nuisance, it won't damage the computer. In order to identify the software problem he said a clean re installation of OS X would need to be done followed by sequential migration of my files (applications, documents, desktop, etc ... but not the USER FILE). He noted that Migration Assistant could not be used again because it would simply migrate the problem back.
At this point, I have not done the OS X reinstall nor the concomitant sequential files migrations. Seeking a solution to the shutdown artefacts problem has already significantly hampered my work flow. At this point, I can't give it anymore time.
I am considering either living with the problem for now or going back to the Apple Store for a full refund and then going out and buying a PC in its place ... but that opens up a whole new "can of worms" which I'm not sure I want, or have the time, to deal with.
Thanks to everyone who is taking their valuable time to work on this problem. I will continue to vigilantly watch for new posts.