Nothing good is happening. Some electronic component is going to blow shortly. I suggest unplugging and getting to repair facility before the item blows. I would worry that the item that is defective would take out other components then you would have to repair more items or more expensive items. It should still be covered by Applecare, so be sure to call them, maybe they have ideas. But also you get your problem on record in case you need a warranty repair. The smell is probably a flame retardant in a board or component being charred by an electrical short or over heating component. I know this smell well, in an earlier job we were accelerated aging circuit boards in ovens. As the flame retardant additive degrades in spits off bromine (or chlorine for some additives). You need to unplug rather than just shut down because the power supply will always be drawing some power when plugged in.