On my system with an Intel chipset all over I have had problems shuting down the machine properly. It never finished the shutdown process and I had to cut the power to the machine.

I finally found the solution. Add the following to /etc/default/halt at the end of the file:

<file>
/sbin/rmmod snd_hda_intel
</file>


Now it works!!