Hello@Jason
When you close the laptop lid, it triggers a power action.
You might go to the Power Options in the Control Panel and selecting “Choose what closing the lid does”. Under “When I close the lid,” choose the “Do nothing” option when plugged in.