Zend certified PHP/Magento developer

RDP connection broken when closing lid

I have old Acer Aspire that I want to turn in home server and connect remotely.
I installed Linux Mint (XFCE edition because I wanted something lightweight).
XRDP is installed and everything works fine until I close the lid.
When I do that RDP connection is down and laptop looks like it’s sleeping. I’ve tried every option in “Power Manager” and none is working. Is there anything to prevent that? Ideal would be to turn off screen on closing, but anything that works would be fine.