There's a setting for overriding the default behaviour on lid-close with external monitors attached:
gsettings set org.gnome.settings-daemon.plugins.power lid-close-suspend-with-external-monitor true
Or, if you prefer, gnome-tweak-tool has a switch for this.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds