command/agent: return if monitor connection fails