Restart the MacBook. Close the lid when the loading bar appears. The loading will continue on the external monitor and then you can proceed to open the lid and the external monitor will still stay connected.
Topic:
App & System Services
SubTopic:
Core OS
Tags: