ensure registering the eof handler when putting back an fd into the iomux

to avoid leaking connection contexts (and related read contexts)