unreffing the server
unreffing the agent
documenting close