[PATCH v2] agent: call back even if agent disconnects