add close fd in ctx