Hello,
Thank you for posting in Q&A forum.
Sometime after RDP session end it will generate a new process that considered part of the program and the session will not terminate until that process also terminates.
One scenario that meets this criteria is printing from a 32-bit application on a 64-bit Remote Desktop Session Host. This printing action will spawn splwow64.exe, the 32-bit to 64-bit thunking process for spooler. Splwow64.exe has a 3-minute timeout to prevent the process from being repeatedly respawned during heavy printing, so it does not immediately exit when printing is complete. This can cause the remote session to appear "hung" with a blank background.
For further details, please kindly refer to below Microsoft Official Documentation link:
Hope this answer can help you well.
Best regards,
Jill Zhou