This occurs when the remote desktop account is not logged in, and showing the login dialog.
The user successfully authenticates via the NoMachine connection GUI and reaches the remote desktop which is displaying the login dialog of the operating system.
When the user enters the login credentials of that desktop, sometimes the session is disconnected.
If the user connects again, he/she is already logged into the remote desktop.