Go to power options

and make sure the monitor does not turn off when lid is closed.