The best thing to do for this situation is in Contact Center Configuration under Call Presentation, is to set the Presentation to return to Queue and After return to Queue force agent into either Not Ready or Logout.
So what will happen is if an agent leaves for the day and does not log off, if a call is presented to that phone, it will automatically bounce back to the queue and the next available agent will get the call. Also it will force the agent/phone in logout or not ready state.
Also you can manually do this in the PBX in LD 32 just disable then re-enable the TN. The phone will come back logged out.