Attended bot running in VM stop running once system get lock/sleep

I think the question has the answer.

You can not run attended robot unattendedly.

The attended robot can not be run when the active windows session is locked/slept/signedout