API gracefully disconnect

Should you preferably issue a command to tell API that you’re disconnecting or just break the connection?
Ekkas

you can simply break connection, it will log out user automatically.