My laptop just shuts down instead of going to sleep when I close the lid

You can try this and see if this helps:

In your case change HandleLidSwitch=suspend

I would also make sure your BIOS is up to date. And that there is not a BIOS setting preventing this.

If those do not work you should consider opening a bug