HowTo: Log all Users out via CLI - Users not Fully Logging in or Out - Device and User mode - gets to "Thank You", but no "Agent logged in"

We use Device and User mode here, and when I use my account to log into a device it logs in with “Thank you” but doesn’t say “Agent Logged in”. This doesn’t happen with every device (sometimes it will work with a hardphone, but not with a softphone or vis versa), or every user, but its happening a lot and its stopping me from putting this system into production.

An easy solution, that would actually be preferable, would be to log all users out via the CLI in the mornings. Is this possible?