add agent.close; refine Connection