notify agent for socket closures on the agency thread