I press shutdown button and if the lid is closed before the shutdown process end, this one resumes after I reopen the lid
I had the exact same problem here on Ubuntu 13.10. I solved it by adding the line :
in the file
And then using this command to make the changes effective:
sudo restart systemd-logind
I hope it solves your problem too. Have a nice day.