To note on console commands:
If you still want to do a console command to log out, but do it safely, use ":act lo". That was the original method to safely log out. (I'm not aware that this has changed, anyway.)
Procne wrote:In any case, server should handle all forms of closing the client as the proper logouts.
Have to agree with this for the most part. You can easily distinguish between a force close of a window and a lost network connection. (Send a message to the server on the window close action before the network connection is closed.) Doesn't mean the character actually gets removed from the world safely, but at least treat it as if the player intended to at least attempt it.