Currently when the nxserver or the server host are being restarted or shut down, sessions are gracefully closed and the NoMachine client goes back to the list of favorite connections.
The server should tell the client what is happening before the session terminates. With this information the client could enter the automatic reconnection procedure, or show a message to the user to explain why the session closed.