Issue:
In windows 10 Operating system in a Sleep mode applications are closing instead of remaining open
Sleep mode and applications closing instead of remaining open
Solution:
Login to windows 10 with admin credentials.
Go to below path:
Control Panel\All Control Panel Items\Power Options\Edit Plan Settings
Click on Change advance power settings
Click on power button and lid
Select power button action and keep below setting and Click Apply and OK
On battery: Sleep
Plugged in: Sleep
Sleep button Cation
On battery: Sleep
Plugged in: Sleep
Issue has been resolved successfully.