agent: RPCClient closes channel on deregister
command: Working on fixing commands