Event for aclose and achan/achan-buf share code.