1- You can address a keyboard or mouse shortcut for hibernation/ shutdown/ reboot/...
If you have a visible button or something that's activated when you close the lappy you could try adding a new keyboard shortcut, click the button and see if e17 recognizes it, then adress the action you desire to that button.
In the screenshot below i've mapped the e17 system popup when i push the sleep button on my keyboard.
My MX1000 keyboard and mouse have lots of extra buttons, most of them can be used in e17 out of the box, just add binding, push the key or combi and choose an action.
Settings Panel / Screen / Power Management