implements AgentLogoff command