command: exit before connecting to rpc in key command