Queue Auto Logoff

I created a queue which our emergency night shift guy signs in and out when he’s on call or not.
Usually, there’s only one guy on call at once, and with a queue this works great.
Is there a way to automatically sign off the previous agent once a new agent signs in?

The following isn’t that critical -
Now to make this a bit more complicated, as I mentioned usually there is only one agent logged in at once, but there are times that we do have more then one crew member, I need a way that when they sign on one way they should NOT remove the current members, and a way that they SHOULD log off the previous member. But as I mentioned this is not that important.